diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2006-01-09 08:59:36 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-01-09 08:59:36 -0500 |
commit | 50465d0da69e8d8b5493c5b752f0aa6d039c3914 (patch) | |
tree | 3c834bf61d91e8e651b87554faae312780455684 /drivers/net/arm/am79c961a.c | |
parent | e9368f8288338c25d8a339c91b15e17ebf33752d (diff) |
[ARM] Update am79c961 to use struct platform_driver
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/net/arm/am79c961a.c')
-rw-r--r-- | drivers/net/arm/am79c961a.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/arm/am79c961a.c b/drivers/net/arm/am79c961a.c index 877891a29aaa..53e3afc1b7b7 100644 --- a/drivers/net/arm/am79c961a.c +++ b/drivers/net/arm/am79c961a.c | |||
@@ -668,9 +668,8 @@ static void __init am79c961_banner(void) | |||
668 | printk(KERN_INFO "%s", version); | 668 | printk(KERN_INFO "%s", version); |
669 | } | 669 | } |
670 | 670 | ||
671 | static int __init am79c961_probe(struct device *_dev) | 671 | static int __init am79c961_probe(struct platform_device *pdev) |
672 | { | 672 | { |
673 | struct platform_device *pdev = to_platform_device(_dev); | ||
674 | struct resource *res; | 673 | struct resource *res; |
675 | struct net_device *dev; | 674 | struct net_device *dev; |
676 | struct dev_priv *priv; | 675 | struct dev_priv *priv; |
@@ -758,15 +757,16 @@ out: | |||
758 | return ret; | 757 | return ret; |
759 | } | 758 | } |
760 | 759 | ||
761 | static struct device_driver am79c961_driver = { | 760 | static struct platform_driver am79c961_driver = { |
762 | .name = "am79c961", | ||
763 | .bus = &platform_bus_type, | ||
764 | .probe = am79c961_probe, | 761 | .probe = am79c961_probe, |
762 | .driver = { | ||
763 | .name = "am79c961", | ||
764 | }, | ||
765 | }; | 765 | }; |
766 | 766 | ||
767 | static int __init am79c961_init(void) | 767 | static int __init am79c961_init(void) |
768 | { | 768 | { |
769 | return driver_register(&am79c961_driver); | 769 | return platform_driver_register(&am79c961_driver); |
770 | } | 770 | } |
771 | 771 | ||
772 | __initcall(am79c961_init); | 772 | __initcall(am79c961_init); |