aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2009-04-05 01:38:51 -0400
committerLen Brown <len.brown@intel.com>2009-04-05 01:38:51 -0400
commit493837009665a5ea1d91ed5fe4bab0ed546cae86 (patch)
treede73923763862e145949b57249b1472446009fec
parente857b33d1879fc4284e3151222eee2415c1de88a (diff)
parent8308e8ab70fd5d7b78afb133c51c5079548ba84f (diff)
Merge branch 'driver-ops-cleanup' into release
-rw-r--r--drivers/acpi/scan.c12
-rw-r--r--include/acpi/acpi_bus.h16
2 files changed, 0 insertions, 28 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
index c548231965ef..b7308efce458 100644
--- a/drivers/acpi/scan.c
+++ b/drivers/acpi/scan.c
@@ -397,22 +397,10 @@ static int acpi_device_remove(struct device * dev)
397 return 0; 397 return 0;
398} 398}
399 399
400static void acpi_device_shutdown(struct device *dev)
401{
402 struct acpi_device *acpi_dev = to_acpi_device(dev);
403 struct acpi_driver *acpi_drv = acpi_dev->driver;
404
405 if (acpi_drv && acpi_drv->ops.shutdown)
406 acpi_drv->ops.shutdown(acpi_dev);
407
408 return ;
409}
410
411struct bus_type acpi_bus_type = { 400struct bus_type acpi_bus_type = {
412 .name = "acpi", 401 .name = "acpi",
413 .suspend = acpi_device_suspend, 402 .suspend = acpi_device_suspend,
414 .resume = acpi_device_resume, 403 .resume = acpi_device_resume,
415 .shutdown = acpi_device_shutdown,
416 .match = acpi_bus_match, 404 .match = acpi_bus_match,
417 .probe = acpi_device_probe, 405 .probe = acpi_device_probe,
418 .remove = acpi_device_remove, 406 .remove = acpi_device_remove,
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index e9f6574930ef..08ec60c8366a 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -88,44 +88,28 @@ struct acpi_device;
88 88
89typedef int (*acpi_op_add) (struct acpi_device * device); 89typedef int (*acpi_op_add) (struct acpi_device * device);
90typedef int (*acpi_op_remove) (struct acpi_device * device, int type); 90typedef int (*acpi_op_remove) (struct acpi_device * device, int type);
91typedef int (*acpi_op_lock) (struct acpi_device * device, int type);
92typedef int (*acpi_op_start) (struct acpi_device * device); 91typedef int (*acpi_op_start) (struct acpi_device * device);
93typedef int (*acpi_op_stop) (struct acpi_device * device, int type); 92typedef int (*acpi_op_stop) (struct acpi_device * device, int type);
94typedef int (*acpi_op_suspend) (struct acpi_device * device, 93typedef int (*acpi_op_suspend) (struct acpi_device * device,
95 pm_message_t state); 94 pm_message_t state);
96typedef int (*acpi_op_resume) (struct acpi_device * device); 95typedef int (*acpi_op_resume) (struct acpi_device * device);
97typedef int (*acpi_op_scan) (struct acpi_device * device);
98typedef int (*acpi_op_bind) (struct acpi_device * device); 96typedef int (*acpi_op_bind) (struct acpi_device * device);
99typedef int (*acpi_op_unbind) (struct acpi_device * device); 97typedef int (*acpi_op_unbind) (struct acpi_device * device);
100typedef int (*acpi_op_shutdown) (struct acpi_device * device);
101 98
102struct acpi_bus_ops { 99struct acpi_bus_ops {
103 u32 acpi_op_add:1; 100 u32 acpi_op_add:1;
104 u32 acpi_op_remove:1;
105 u32 acpi_op_lock:1;
106 u32 acpi_op_start:1; 101 u32 acpi_op_start:1;
107 u32 acpi_op_stop:1;
108 u32 acpi_op_suspend:1;
109 u32 acpi_op_resume:1;
110 u32 acpi_op_scan:1;
111 u32 acpi_op_bind:1;
112 u32 acpi_op_unbind:1;
113 u32 acpi_op_shutdown:1;
114 u32 reserved:21;
115}; 102};
116 103
117struct acpi_device_ops { 104struct acpi_device_ops {
118 acpi_op_add add; 105 acpi_op_add add;
119 acpi_op_remove remove; 106 acpi_op_remove remove;
120 acpi_op_lock lock;
121 acpi_op_start start; 107 acpi_op_start start;
122 acpi_op_stop stop; 108 acpi_op_stop stop;
123 acpi_op_suspend suspend; 109 acpi_op_suspend suspend;
124 acpi_op_resume resume; 110 acpi_op_resume resume;
125 acpi_op_scan scan;
126 acpi_op_bind bind; 111 acpi_op_bind bind;
127 acpi_op_unbind unbind; 112 acpi_op_unbind unbind;
128 acpi_op_shutdown shutdown;
129}; 113};
130 114
131struct acpi_driver { 115struct acpi_driver {