aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/atm/fore200e.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/atm/fore200e.c')
-rw-r--r--drivers/atm/fore200e.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/drivers/atm/fore200e.c b/drivers/atm/fore200e.c
index 44f778507770..bdd2719f3f68 100644
--- a/drivers/atm/fore200e.c
+++ b/drivers/atm/fore200e.c
@@ -2643,14 +2643,17 @@ fore200e_init(struct fore200e* fore200e, struct device *parent)
2643} 2643}
2644 2644
2645#ifdef CONFIG_SBUS 2645#ifdef CONFIG_SBUS
2646static int __devinit fore200e_sba_probe(struct platform_device *op, 2646static int __devinit fore200e_sba_probe(struct platform_device *op)
2647 const struct of_device_id *match)
2648{ 2647{
2649 const struct fore200e_bus *bus = match->data; 2648 const struct fore200e_bus *bus;
2650 struct fore200e *fore200e; 2649 struct fore200e *fore200e;
2651 static int index = 0; 2650 static int index = 0;
2652 int err; 2651 int err;
2653 2652
2653 if (!op->dev.of_match)
2654 return -EINVAL;
2655 bus = op->dev.of_match->data;
2656
2654 fore200e = kzalloc(sizeof(struct fore200e), GFP_KERNEL); 2657 fore200e = kzalloc(sizeof(struct fore200e), GFP_KERNEL);
2655 if (!fore200e) 2658 if (!fore200e)
2656 return -ENOMEM; 2659 return -ENOMEM;
@@ -2694,7 +2697,7 @@ static const struct of_device_id fore200e_sba_match[] = {
2694}; 2697};
2695MODULE_DEVICE_TABLE(of, fore200e_sba_match); 2698MODULE_DEVICE_TABLE(of, fore200e_sba_match);
2696 2699
2697static struct of_platform_driver fore200e_sba_driver = { 2700static struct platform_driver fore200e_sba_driver = {
2698 .driver = { 2701 .driver = {
2699 .name = "fore_200e", 2702 .name = "fore_200e",
2700 .owner = THIS_MODULE, 2703 .owner = THIS_MODULE,
@@ -2795,7 +2798,7 @@ static int __init fore200e_module_init(void)
2795 printk(FORE200E "FORE Systems 200E-series ATM driver - version " FORE200E_VERSION "\n"); 2798 printk(FORE200E "FORE Systems 200E-series ATM driver - version " FORE200E_VERSION "\n");
2796 2799
2797#ifdef CONFIG_SBUS 2800#ifdef CONFIG_SBUS
2798 err = of_register_platform_driver(&fore200e_sba_driver); 2801 err = platform_driver_register(&fore200e_sba_driver);
2799 if (err) 2802 if (err)
2800 return err; 2803 return err;
2801#endif 2804#endif
@@ -2806,7 +2809,7 @@ static int __init fore200e_module_init(void)
2806 2809
2807#ifdef CONFIG_SBUS 2810#ifdef CONFIG_SBUS
2808 if (err) 2811 if (err)
2809 of_unregister_platform_driver(&fore200e_sba_driver); 2812 platform_driver_unregister(&fore200e_sba_driver);
2810#endif 2813#endif
2811 2814
2812 return err; 2815 return err;
@@ -2818,7 +2821,7 @@ static void __exit fore200e_module_cleanup(void)
2818 pci_unregister_driver(&fore200e_pca_driver); 2821 pci_unregister_driver(&fore200e_pca_driver);
2819#endif 2822#endif
2820#ifdef CONFIG_SBUS 2823#ifdef CONFIG_SBUS
2821 of_unregister_platform_driver(&fore200e_sba_driver); 2824 platform_driver_unregister(&fore200e_sba_driver);
2822#endif 2825#endif
2823} 2826}
2824 2827