Add more drivers to using device_platform_driver()
Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
943e586fe6
commit
aeaeb40ccf
|
@ -731,10 +731,4 @@ static struct driver_d hb_xgmac_driver = {
|
|||
.probe = hb_xgmac_probe,
|
||||
.of_compatible = DRV_OF_COMPAT(xgmac_dt_ids),
|
||||
};
|
||||
|
||||
static int hb_xgmac_driver_init(void)
|
||||
{
|
||||
debug("%s\n", __func__);
|
||||
return platform_driver_register(&hb_xgmac_driver);
|
||||
}
|
||||
device_initcall(hb_xgmac_driver_init);
|
||||
device_platform_driver(hb_xgmac_driver);
|
||||
|
|
|
@ -276,13 +276,7 @@ static struct driver_d mxs_spi_driver = {
|
|||
.name = "mxs_spi",
|
||||
.probe = mxs_spi_probe,
|
||||
};
|
||||
|
||||
static int __init mxs_spi_init(void)
|
||||
{
|
||||
return platform_driver_register(&mxs_spi_driver);
|
||||
}
|
||||
|
||||
device_initcall(mxs_spi_init);
|
||||
device_platform_driver(mxs_spi_driver);
|
||||
|
||||
MODULE_AUTHOR("Denx Software Engeneering and Michael Grzeschik");
|
||||
MODULE_DESCRIPTION("MXS SPI driver");
|
||||
|
|
Loading…
Reference in New Issue