mfd: asic3 children platform data removal
authorSamuel Ortiz <sameo@openedhand.com>
Fri, 20 Jun 2008 09:07:39 +0000 (11:07 +0200)
committerSamuel Ortiz <samuel@sortiz.org>
Sun, 20 Jul 2008 17:54:51 +0000 (19:54 +0200)
Platform devices should be dynamically allocated, and each supported
device should have its own platform data.
For now we just remove this buggy code.

Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/mfd/asic3.c
include/linux/mfd/asic3.h

index c70e7a5a5a90b7cab6f63346d973fbbaa779add3..dfee0a2ba1677d49da387a27e4ec960701498605 100644 (file)
@@ -604,14 +604,6 @@ static int asic3_probe(struct platform_device *pdev)
                goto out_irq;
        }
 
-       if (pdata->children) {
-               int i;
-               for (i = 0; i < pdata->n_children; i++) {
-                       pdata->children[i]->dev.parent = &pdev->dev;
-                       platform_device_register(pdata->children[i]);
-               }
-       }
-
        printk(KERN_INFO "ASIC3 Core driver\n");
 
        return 0;
index 06ef8165f406f60f8a1244914c6fd28087ff1abf..b1c365800ab536ec8576ff648a7a0803b95d1cdd 100644 (file)
@@ -32,9 +32,6 @@ struct asic3_platform_data {
        unsigned int irq_base;
 
        unsigned int gpio_base;
-
-       struct platform_device **children;
-       unsigned int n_children;
 };
 
 #define ASIC3_NUM_GPIO_BANKS   4
This page took 0.029871 seconds and 5 git commands to generate.