diff options
Diffstat (limited to 'arch/xtensa/platform-iss/network.c')
-rw-r--r-- | arch/xtensa/platform-iss/network.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/xtensa/platform-iss/network.c b/arch/xtensa/platform-iss/network.c index 0682ffd38175..58e782e5c42d 100644 --- a/arch/xtensa/platform-iss/network.c +++ b/arch/xtensa/platform-iss/network.c | |||
@@ -648,9 +648,10 @@ void iss_net_user_timer_expire(unsigned long _conn) | |||
648 | } | 648 | } |
649 | 649 | ||
650 | 650 | ||
651 | static struct device_driver iss_net_driver = { | 651 | static struct platform_driver iss_net_driver = { |
652 | .name = DRIVER_NAME, | 652 | .driver = { |
653 | .bus = &platform_bus_type, | 653 | .name = DRIVER_NAME, |
654 | }, | ||
654 | }; | 655 | }; |
655 | 656 | ||
656 | static int driver_registered; | 657 | static int driver_registered; |
@@ -701,7 +702,7 @@ static int iss_net_configure(int index, char *init) | |||
701 | /* sysfs register */ | 702 | /* sysfs register */ |
702 | 703 | ||
703 | if (!driver_registered) { | 704 | if (!driver_registered) { |
704 | driver_register(&iss_net_driver); | 705 | platform_driver_register(&iss_net_driver); |
705 | driver_registered = 1; | 706 | driver_registered = 1; |
706 | } | 707 | } |
707 | 708 | ||