Skip to content

Commit

Permalink
mfd: asic3 children platform data removal
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Samuel Ortiz authored and Samuel Ortiz committed Jul 20, 2008
1 parent 6f2384c commit 1effe5b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
8 changes: 0 additions & 8 deletions drivers/mfd/asic3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions include/linux/mfd/asic3.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1effe5b

Please sign in to comment.