diff options
Diffstat (limited to 'arch/ppc/platforms/radstone_ppc7d.c')
-rw-r--r-- | arch/ppc/platforms/radstone_ppc7d.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/ppc/platforms/radstone_ppc7d.c b/arch/ppc/platforms/radstone_ppc7d.c index 872c0a3ba3c7..bc26b6d71c1d 100644 --- a/arch/ppc/platforms/radstone_ppc7d.c +++ b/arch/ppc/platforms/radstone_ppc7d.c | |||
@@ -1,6 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * arch/ppc/platforms/radstone_ppc7d.c | ||
3 | * | ||
4 | * Board setup routines for the Radstone PPC7D boards. | 2 | * Board setup routines for the Radstone PPC7D boards. |
5 | * | 3 | * |
6 | * Author: James Chapman <jchapman@katalix.com> | 4 | * Author: James Chapman <jchapman@katalix.com> |
@@ -685,11 +683,10 @@ ppc7d_fixup_i2c_pdata(struct platform_device *pdev) | |||
685 | 683 | ||
686 | pdata = pdev->dev.platform_data; | 684 | pdata = pdev->dev.platform_data; |
687 | if (pdata == NULL) { | 685 | if (pdata == NULL) { |
688 | pdata = kmalloc(sizeof(*pdata), GFP_KERNEL); | 686 | pdata = kzalloc(sizeof(*pdata), GFP_KERNEL); |
689 | if (pdata == NULL) | 687 | if (pdata == NULL) |
690 | return; | 688 | return; |
691 | 689 | ||
692 | memset(pdata, 0, sizeof(*pdata)); | ||
693 | pdev->dev.platform_data = pdata; | 690 | pdev->dev.platform_data = pdata; |
694 | } | 691 | } |
695 | 692 | ||
@@ -712,7 +709,7 @@ ppc7d_fixup_i2c_pdata(struct platform_device *pdev) | |||
712 | } | 709 | } |
713 | #endif | 710 | #endif |
714 | 711 | ||
715 | static int __init ppc7d_platform_notify(struct device *dev) | 712 | static int ppc7d_platform_notify(struct device *dev) |
716 | { | 713 | { |
717 | static struct { | 714 | static struct { |
718 | char *bus_id; | 715 | char *bus_id; |