diff options
author | Rob Herring <rob.herring@calxeda.com> | 2013-04-21 17:38:31 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@linaro.org> | 2013-06-12 07:37:16 -0400 |
commit | 10dbc5e39a60944536f3ca59bc9a8a8896355714 (patch) | |
tree | 586d7c920d11ef3084c850792f7cec8d6952f78d /drivers/base | |
parent | 8d561b60a9174defff2e48e109f68a5f2ae7dd9c (diff) |
driver core: move to_platform_driver to platform_device.h
In converting the last remaining of_platform_driver (ibmebus) to a regular
platform driver, to_platform_driver is needed to replace
to_of_platform_driver.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/platform.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c index 9eda84246ffd..1bcb2a792e95 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c | |||
@@ -29,9 +29,6 @@ | |||
29 | /* For automatically allocated device IDs */ | 29 | /* For automatically allocated device IDs */ |
30 | static DEFINE_IDA(platform_devid_ida); | 30 | static DEFINE_IDA(platform_devid_ida); |
31 | 31 | ||
32 | #define to_platform_driver(drv) (container_of((drv), struct platform_driver, \ | ||
33 | driver)) | ||
34 | |||
35 | struct device platform_bus = { | 32 | struct device platform_bus = { |
36 | .init_name = "platform", | 33 | .init_name = "platform", |
37 | }; | 34 | }; |