aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2007-02-07 19:51:46 -0500
committerLen Brown <len.brown@intel.com>2007-02-09 01:18:32 -0500
commitd94d3dff0d5da3bdfcbb424ba5c08534521fd690 (patch)
treee5b0ff6d15c62a3fdae0427d8cc7251cdb0e0fab /include/acpi
parenta74388e21ef2adbba4450f7b3f05ffe88df630d5 (diff)
ACPI: bay: fix build warning
drivers/acpi/bay.c: In function 'bay_add': drivers/acpi/bay.c:310: warning: statement with no effect Fix it by rewriting those macros in C. Much nicer. Cc: Kristen Carlson Accardi <kristen.c.accardi@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/acpi_drivers.h24
1 files changed, 19 insertions, 5 deletions
diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h
index 4dc8a5043ef0..3d7ebe0e4fc2 100644
--- a/include/acpi/acpi_drivers.h
+++ b/include/acpi/acpi_drivers.h
@@ -122,10 +122,24 @@ extern int register_hotplug_dock_device(acpi_handle handle,
122 acpi_notify_handler handler, void *context); 122 acpi_notify_handler handler, void *context);
123extern void unregister_hotplug_dock_device(acpi_handle handle); 123extern void unregister_hotplug_dock_device(acpi_handle handle);
124#else 124#else
125#define is_dock_device(h) (0) 125static inline int is_dock_device(acpi_handle handle)
126#define register_dock_notifier(nb) (-ENODEV) 126{
127#define unregister_dock_notifier(nb) do { } while(0) 127 return 0;
128#define register_hotplug_dock_device(h1, h2, c) (-ENODEV) 128}
129#define unregister_hotplug_dock_device(h) do { } while(0) 129static inline int register_dock_notifier(struct notifier_block *nb)
130{
131 return -ENODEV;
132}
133static inline void unregister_dock_notifier(struct notifier_block *nb)
134{
135}
136static inline int register_hotplug_dock_device(acpi_handle handle,
137 acpi_notify_handler handler, void *context)
138{
139 return -ENODEV;
140}
141static inline void unregister_hotplug_dock_device(acpi_handle handle)
142{
143}
130#endif 144#endif
131#endif /*__ACPI_DRIVERS_H__*/ 145#endif /*__ACPI_DRIVERS_H__*/