9
0
Fork 0

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:
Alexander Shiyan 2013-03-10 10:41:31 +04:00 committed by Sascha Hauer
parent 943e586fe6
commit aeaeb40ccf
2 changed files with 2 additions and 14 deletions

View File

@ -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);

View File

@ -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");