projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9272c4
)
mfd: Use to_platform_device instead of container_of
author
Ben Dooks
<ben-linux@fluff.org>
Mon, 28 Jul 2008 16:26:42 +0000
(18:26 +0200)
committer
Samuel Ortiz
<sameo@openedhand.com>
Mon, 28 Jul 2008 16:26:42 +0000
(18:26 +0200)
Convert mfd_remove_devices_fn() to use to_platform_device()
instead of doing container_of().
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Acked-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
drivers/mfd/mfd-core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mfd/mfd-core.c
b/drivers/mfd/mfd-core.c
index 0454be4266c1cf7371dd359b9839c09fcb126f7d..4dc861a7ac5616ff89edd61dbfcd28f805a846a3 100644
(file)
--- a/
drivers/mfd/mfd-core.c
+++ b/
drivers/mfd/mfd-core.c
@@
-99,8
+99,7
@@
EXPORT_SYMBOL(mfd_add_devices);
static int mfd_remove_devices_fn(struct device *dev, void *unused)
{
- platform_device_unregister(
- container_of(dev, struct platform_device, dev));
+ platform_device_unregister(to_platform_device(dev));
return 0;
}