Signed-off-by: Alexander Shiyan <shc_work@xxxxxxx> --- drivers/net/xgmac.c | 8 +------- drivers/spi/mxs_spi.c | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/net/xgmac.c b/drivers/net/xgmac.c index 203e682..b4bfd08 100644 --- a/drivers/net/xgmac.c +++ b/drivers/net/xgmac.c @@ -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); diff --git a/drivers/spi/mxs_spi.c b/drivers/spi/mxs_spi.c index 89b4d19..e15f2c2 100644 --- a/drivers/spi/mxs_spi.c +++ b/drivers/spi/mxs_spi.c @@ -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"); -- 1.7.12.4 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox