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 <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Tested-by: Benjamin Herrenschmidt <[email protected]>
Signed-off-by: Grant Likely <[email protected]>
This commit is contained in:
Rob Herring 2013-04-21 16:38:31 -05:00 • committed by Grant Likely
commit 10dbc5e39a
2 changed files with 3 additions and 3 deletions

View file

@ -29,9 +29,6 @@
/* For automatically allocated device IDs */
static DEFINE_IDA(platform_devid_ida);
#define to_platform_driver(drv) (container_of((drv), struct platform_driver, \
driver))
struct device platform_bus = {
.init_name = "platform",
};