Skip to content

Commit 1effe5b

Browse files
Samuel OrtizSamuel Ortiz
authored andcommitted
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>
1 parent 6f2384c commit 1effe5b

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

‎drivers/mfd/asic3.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -604,14 +604,6 @@ static int asic3_probe(struct platform_device *pdev)
604604
goto out_irq;
605605
}
606606

607-
if (pdata->children) {
608-
int i;
609-
for (i = 0; i < pdata->n_children; i++) {
610-
pdata->children[i]->dev.parent = &pdev->dev;
611-
platform_device_register(pdata->children[i]);
612-
}
613-
}
614-
615607
printk(KERN_INFO "ASIC3 Core driver\n");
616608

617609
return 0;

‎include/linux/mfd/asic3.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ struct asic3_platform_data {
3232
unsigned int irq_base;
3333

3434
unsigned int gpio_base;
35-
36-
struct platform_device **children;
37-
unsigned int n_children;
3835
};
3936

4037
#define ASIC3_NUM_GPIO_BANKS 4

0 commit comments

Comments
 (0)