aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc/platforms
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2006-03-20 12:58:02 -0500
committerKumar Gala <galak@kernel.crashing.org>2006-03-20 12:58:02 -0500
commit1a02e59a2970f9ed28ab51d3b08624b79e54d848 (patch)
tree470cce472be3b08c160e0c569648e7228651b12a /arch/ppc/platforms
parentebcff3c773b42bce6182ec16485abca4e53fba97 (diff)
parent2c276603c3e5ebf38155a9d1fbbda656d52d138e (diff)
Merge branch 'master'
Diffstat (limited to 'arch/ppc/platforms')
-rw-r--r--arch/ppc/platforms/4xx/virtex.h2
-rw-r--r--arch/ppc/platforms/cpci690.c2
-rw-r--r--arch/ppc/platforms/ev64260.c2
-rw-r--r--arch/ppc/platforms/ev64360.c2
-rw-r--r--arch/ppc/platforms/hdpu.c2
-rw-r--r--arch/ppc/platforms/katana.c5
-rw-r--r--arch/ppc/platforms/radstone_ppc7d.c5
7 files changed, 9 insertions, 11 deletions
diff --git a/arch/ppc/platforms/4xx/virtex.h b/arch/ppc/platforms/4xx/virtex.h
index 1a01b81cff11..c14325dfd7b1 100644
--- a/arch/ppc/platforms/4xx/virtex.h
+++ b/arch/ppc/platforms/4xx/virtex.h
@@ -27,7 +27,7 @@
27/* Device type enumeration for platform bus definitions */ 27/* Device type enumeration for platform bus definitions */
28#ifndef __ASSEMBLY__ 28#ifndef __ASSEMBLY__
29enum ppc_sys_devices { 29enum ppc_sys_devices {
30 VIRTEX_UART, 30 VIRTEX_UART, NUM_PPC_SYS_DEVS,
31}; 31};
32#endif 32#endif
33 33
diff --git a/arch/ppc/platforms/cpci690.c b/arch/ppc/platforms/cpci690.c
index 55be550a0811..790475c22fd7 100644
--- a/arch/ppc/platforms/cpci690.c
+++ b/arch/ppc/platforms/cpci690.c
@@ -288,7 +288,7 @@ cpci690_fixup_mpsc_pdata(struct platform_device *pdev)
288 pdata->brg_clk_freq = cpci690_get_bus_freq(); 288 pdata->brg_clk_freq = cpci690_get_bus_freq();
289} 289}
290 290
291static int __init 291static int
292cpci690_platform_notify(struct device *dev) 292cpci690_platform_notify(struct device *dev)
293{ 293{
294 static struct { 294 static struct {
diff --git a/arch/ppc/platforms/ev64260.c b/arch/ppc/platforms/ev64260.c
index 6444760caa3a..31e8e21e1d5c 100644
--- a/arch/ppc/platforms/ev64260.c
+++ b/arch/ppc/platforms/ev64260.c
@@ -414,7 +414,7 @@ ev64260_fixup_mpsc_pdata(struct platform_device *pdev)
414 return; 414 return;
415} 415}
416 416
417static int __init 417static int
418ev64260_platform_notify(struct device *dev) 418ev64260_platform_notify(struct device *dev)
419{ 419{
420 static struct { 420 static struct {
diff --git a/arch/ppc/platforms/ev64360.c b/arch/ppc/platforms/ev64360.c
index b5f52eba4fc1..104ac9b16e8b 100644
--- a/arch/ppc/platforms/ev64360.c
+++ b/arch/ppc/platforms/ev64360.c
@@ -298,7 +298,7 @@ ev64360_fixup_eth_pdata(struct platform_device *pdev)
298} 298}
299#endif 299#endif
300 300
301static int __init 301static int
302ev64360_platform_notify(struct device *dev) 302ev64360_platform_notify(struct device *dev)
303{ 303{
304 static struct { 304 static struct {
diff --git a/arch/ppc/platforms/hdpu.c b/arch/ppc/platforms/hdpu.c
index 220674d883df..fc869bb5b2b4 100644
--- a/arch/ppc/platforms/hdpu.c
+++ b/arch/ppc/platforms/hdpu.c
@@ -351,7 +351,7 @@ static void __init hdpu_fixup_cpustate_pdata(struct platform_device *pd)
351} 351}
352#endif 352#endif
353 353
354static int __init hdpu_platform_notify(struct device *dev) 354static int hdpu_platform_notify(struct device *dev)
355{ 355{
356 static struct { 356 static struct {
357 char *bus_id; 357 char *bus_id;
diff --git a/arch/ppc/platforms/katana.c b/arch/ppc/platforms/katana.c
index d2766617c3cb..ad21280e8920 100644
--- a/arch/ppc/platforms/katana.c
+++ b/arch/ppc/platforms/katana.c
@@ -596,7 +596,7 @@ katana_fixup_mv64xxx_pdata(struct platform_device *pdev)
596} 596}
597#endif 597#endif
598 598
599static int __init 599static int
600katana_platform_notify(struct device *dev) 600katana_platform_notify(struct device *dev)
601{ 601{
602 static struct { 602 static struct {
@@ -662,12 +662,11 @@ katana_setup_mtd(void)
662 662
663 ptbl_entries = (size >= (64*MB)) ? 6 : 4; 663 ptbl_entries = (size >= (64*MB)) ? 6 : 4;
664 664
665 if ((ptbl = kmalloc(ptbl_entries * sizeof(struct mtd_partition), 665 if ((ptbl = kcalloc(ptbl_entries, sizeof(struct mtd_partition),
666 GFP_KERNEL)) == NULL) { 666 GFP_KERNEL)) == NULL) {
667 printk(KERN_WARNING "Can't alloc MTD partition table\n"); 667 printk(KERN_WARNING "Can't alloc MTD partition table\n");
668 return -ENOMEM; 668 return -ENOMEM;
669 } 669 }
670 memset(ptbl, 0, ptbl_entries * sizeof(struct mtd_partition));
671 670
672 ptbl[0].name = "Monitor"; 671 ptbl[0].name = "Monitor";
673 ptbl[0].size = KATANA_MTD_MONITOR_SIZE; 672 ptbl[0].size = KATANA_MTD_MONITOR_SIZE;
diff --git a/arch/ppc/platforms/radstone_ppc7d.c b/arch/ppc/platforms/radstone_ppc7d.c
index 1b1e7c5ef152..bc26b6d71c1d 100644
--- a/arch/ppc/platforms/radstone_ppc7d.c
+++ b/arch/ppc/platforms/radstone_ppc7d.c
@@ -683,11 +683,10 @@ ppc7d_fixup_i2c_pdata(struct platform_device *pdev)
683 683
684 pdata = pdev->dev.platform_data; 684 pdata = pdev->dev.platform_data;
685 if (pdata == NULL) { 685 if (pdata == NULL) {
686 pdata = kmalloc(sizeof(*pdata), GFP_KERNEL); 686 pdata = kzalloc(sizeof(*pdata), GFP_KERNEL);
687 if (pdata == NULL) 687 if (pdata == NULL)
688 return; 688 return;
689 689
690 memset(pdata, 0, sizeof(*pdata));
691 pdev->dev.platform_data = pdata; 690 pdev->dev.platform_data = pdata;
692 } 691 }
693 692
@@ -710,7 +709,7 @@ ppc7d_fixup_i2c_pdata(struct platform_device *pdev)
710} 709}
711#endif 710#endif
712 711
713static int __init ppc7d_platform_notify(struct device *dev) 712static int ppc7d_platform_notify(struct device *dev)
714{ 713{
715 static struct { 714 static struct {
716 char *bus_id; 715 char *bus_id;