bus: imx-weim: use module_platform_driver()
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 14 Aug 2019 08:23:16 +0000 (10:23 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 19 Aug 2019 12:07:23 +0000 (14:07 +0200)
commit4a92f07816ba3020c690cc0f6e9627fec15b335e
tree66ae3d3c83e1fa6317318b92ea646dabe5979852
parentffbf23d50353915dc2622a3b7b4ddc678165f92d
bus: imx-weim: use module_platform_driver()

Switch from module_platform_driver_probe() to module_platform_driver().
The former is not suitable for booting with device tree as the driver
will be registered before the device and thus won't be probed again
when the device is present.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/bus/imx-weim.c