diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2013-03-10 10:41:31 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-03-14 07:15:44 +0100 |
commit | aeaeb40ccf8724c58837ce4817a499f46ebca4a4 (patch) | |
tree | 1ff10fd81fcb39c6d1fe91eb1cb282f6ab9d046c /drivers/net/xgmac.c | |
parent | 943e586fe69c8a80fed11d2e04e8e0afd875b61d (diff) | |
download | barebox-aeaeb40ccf8724c58837ce4817a499f46ebca4a4.tar.gz barebox-aeaeb40ccf8724c58837ce4817a499f46ebca4a4.tar.xz |
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>
Diffstat (limited to 'drivers/net/xgmac.c')
-rw-r--r-- | drivers/net/xgmac.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/xgmac.c b/drivers/net/xgmac.c index 203e6827ee..b4bfd08994 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); |