diff options
author | Samuel Ortiz <sameo@openedhand.com> | 2008-06-20 11:07:39 +0200 |
---|---|---|
committer | Samuel Ortiz <samuel@sortiz.org> | 2008-07-20 19:54:51 +0200 |
commit | 1effe5bc6cfbac4506d7944d68dadbd29ad62645 (patch) | |
tree | 805545bcfba7026e565de14ee251b03739872f34 | |
parent | 6f2384c4bdd4be3dc1e5d22ed5e6f0c3076fda60 (diff) | |
download | linux-1effe5bc6cfbac4506d7944d68dadbd29ad62645.tar.bz2 |
mfd: asic3 children platform data removal
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>
-rw-r--r-- | drivers/mfd/asic3.c | 8 | ||||
-rw-r--r-- | include/linux/mfd/asic3.h | 3 |
2 files changed, 0 insertions, 11 deletions
diff --git a/drivers/mfd/asic3.c b/drivers/mfd/asic3.c index c70e7a5a5a90..dfee0a2ba167 100644 --- a/drivers/mfd/asic3.c +++ b/drivers/mfd/asic3.c @@ -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; diff --git a/include/linux/mfd/asic3.h b/include/linux/mfd/asic3.h index 06ef8165f406..b1c365800ab5 100644 --- a/include/linux/mfd/asic3.h +++ b/include/linux/mfd/asic3.h @@ -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 |