mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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:
parent
8d561b60a9
commit
10dbc5e39a
2 changed files with 3 additions and 3 deletions
|
|
@ -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",
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue