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 96b9bb4a478d..0dc55cc8691b 100644 --- a/arch/xtensa/platform-iss/network.c +++ b/arch/xtensa/platform-iss/network.c | |||
@@ -616,9 +616,10 @@ void iss_net_user_timer_expire(unsigned long _conn) | |||
616 | } | 616 | } |
617 | 617 | ||
618 | 618 | ||
619 | static struct device_driver iss_net_driver = { | 619 | static struct platform_driver iss_net_driver = { |
620 | .name = DRIVER_NAME, | 620 | .driver = { |
621 | .bus = &platform_bus_type, | 621 | .name = DRIVER_NAME, |
622 | }, | ||
622 | }; | 623 | }; |
623 | 624 | ||
624 | static int driver_registered; | 625 | static int driver_registered; |
@@ -669,7 +670,7 @@ static int iss_net_configure(int index, char *init) | |||
669 | /* sysfs register */ | 670 | /* sysfs register */ |
670 | 671 | ||
671 | if (!driver_registered) { | 672 | if (!driver_registered) { |
672 | driver_register(&iss_net_driver); | 673 | platform_driver_register(&iss_net_driver); |
673 | driver_registered = 1; | 674 | driver_registered = 1; |
674 | } | 675 | } |
675 | 676 | ||