diff options
Diffstat (limited to 'drivers/net/gianfar.c')
-rw-r--r-- | drivers/net/gianfar.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c index 5ed8f9f9419f..ccb231c4d933 100644 --- a/drivers/net/gianfar.c +++ b/drivers/net/gianfar.c | |||
@@ -123,8 +123,7 @@ static irqreturn_t gfar_interrupt(int irq, void *dev_id); | |||
123 | static void adjust_link(struct net_device *dev); | 123 | static void adjust_link(struct net_device *dev); |
124 | static void init_registers(struct net_device *dev); | 124 | static void init_registers(struct net_device *dev); |
125 | static int init_phy(struct net_device *dev); | 125 | static int init_phy(struct net_device *dev); |
126 | static int gfar_probe(struct platform_device *ofdev, | 126 | static int gfar_probe(struct platform_device *ofdev); |
127 | const struct of_device_id *match); | ||
128 | static int gfar_remove(struct platform_device *ofdev); | 127 | static int gfar_remove(struct platform_device *ofdev); |
129 | static void free_skb_resources(struct gfar_private *priv); | 128 | static void free_skb_resources(struct gfar_private *priv); |
130 | static void gfar_set_multi(struct net_device *dev); | 129 | static void gfar_set_multi(struct net_device *dev); |
@@ -957,8 +956,7 @@ static void gfar_detect_errata(struct gfar_private *priv) | |||
957 | 956 | ||
958 | /* Set up the ethernet device structure, private data, | 957 | /* Set up the ethernet device structure, private data, |
959 | * and anything else we need before we start */ | 958 | * and anything else we need before we start */ |
960 | static int gfar_probe(struct platform_device *ofdev, | 959 | static int gfar_probe(struct platform_device *ofdev) |
961 | const struct of_device_id *match) | ||
962 | { | 960 | { |
963 | u32 tempval; | 961 | u32 tempval; |
964 | struct net_device *dev = NULL; | 962 | struct net_device *dev = NULL; |
@@ -3256,7 +3254,7 @@ static struct of_device_id gfar_match[] = | |||
3256 | MODULE_DEVICE_TABLE(of, gfar_match); | 3254 | MODULE_DEVICE_TABLE(of, gfar_match); |
3257 | 3255 | ||
3258 | /* Structure for a device driver */ | 3256 | /* Structure for a device driver */ |
3259 | static struct of_platform_driver gfar_driver = { | 3257 | static struct platform_driver gfar_driver = { |
3260 | .driver = { | 3258 | .driver = { |
3261 | .name = "fsl-gianfar", | 3259 | .name = "fsl-gianfar", |
3262 | .owner = THIS_MODULE, | 3260 | .owner = THIS_MODULE, |
@@ -3269,12 +3267,12 @@ static struct of_platform_driver gfar_driver = { | |||
3269 | 3267 | ||
3270 | static int __init gfar_init(void) | 3268 | static int __init gfar_init(void) |
3271 | { | 3269 | { |
3272 | return of_register_platform_driver(&gfar_driver); | 3270 | return platform_driver_register(&gfar_driver); |
3273 | } | 3271 | } |
3274 | 3272 | ||
3275 | static void __exit gfar_exit(void) | 3273 | static void __exit gfar_exit(void) |
3276 | { | 3274 | { |
3277 | of_unregister_platform_driver(&gfar_driver); | 3275 | platform_driver_unregister(&gfar_driver); |
3278 | } | 3276 | } |
3279 | 3277 | ||
3280 | module_init(gfar_init); | 3278 | module_init(gfar_init); |