aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/bcm47xx/setup.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2014-12-10 11:38:26 -0500
committerRalf Baechle <ralf@linux-mips.org>2015-04-01 11:22:10 -0400
commitd548ca6b0784a99f0fcae397f115823ccd0361a5 (patch)
tree17a178461b3762bc78c301892abeeec4fcaf7d16 /arch/mips/bcm47xx/setup.c
parent05f5507f59d6d3eab1c2172c6266b664b61599b5 (diff)
MIPS: BCM47XX: Fix coding style to match kernel standards
[ralf@linux-mips.org: Fixed conflicts.] Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Acked-by: Hauke Mehrtens <hauke@hauke-m.de> Cc: linux-mips@linux-mips.org Cc: Paul Walmsley <paul@pwsan.com> Patchwork: https://patchwork.linux-mips.org/patch/8665/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/bcm47xx/setup.c')
-rw-r--r--arch/mips/bcm47xx/setup.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/mips/bcm47xx/setup.c b/arch/mips/bcm47xx/setup.c
index b26c9c24275e..82ff9fd2ab6e 100644
--- a/arch/mips/bcm47xx/setup.c
+++ b/arch/mips/bcm47xx/setup.c
@@ -52,7 +52,7 @@ EXPORT_SYMBOL(bcm47xx_bus_type);
52 52
53static void bcm47xx_machine_restart(char *command) 53static void bcm47xx_machine_restart(char *command)
54{ 54{
55 printk(KERN_ALERT "Please stand by while rebooting the system...\n"); 55 pr_alert("Please stand by while rebooting the system...\n");
56 local_irq_disable(); 56 local_irq_disable();
57 /* Set the watchdog timer to reset immediately */ 57 /* Set the watchdog timer to reset immediately */
58 switch (bcm47xx_bus_type) { 58 switch (bcm47xx_bus_type) {
@@ -107,7 +107,7 @@ static int bcm47xx_get_invariants(struct ssb_bus *bus,
107 char buf[20]; 107 char buf[20];
108 108
109 /* Fill boardinfo structure */ 109 /* Fill boardinfo structure */
110 memset(&(iv->boardinfo), 0 , sizeof(struct ssb_boardinfo)); 110 memset(&iv->boardinfo, 0 , sizeof(struct ssb_boardinfo));
111 111
112 bcm47xx_fill_ssb_boardinfo(&iv->boardinfo, NULL); 112 bcm47xx_fill_ssb_boardinfo(&iv->boardinfo, NULL);
113 113
@@ -126,7 +126,7 @@ static void __init bcm47xx_register_ssb(void)
126 char buf[100]; 126 char buf[100];
127 struct ssb_mipscore *mcore; 127 struct ssb_mipscore *mcore;
128 128
129 err = ssb_bus_ssbbus_register(&(bcm47xx_bus.ssb), SSB_ENUM_BASE, 129 err = ssb_bus_ssbbus_register(&bcm47xx_bus.ssb, SSB_ENUM_BASE,
130 bcm47xx_get_invariants); 130 bcm47xx_get_invariants);
131 if (err) 131 if (err)
132 panic("Failed to initialize SSB bus (err %d)", err); 132 panic("Failed to initialize SSB bus (err %d)", err);
@@ -136,7 +136,7 @@ static void __init bcm47xx_register_ssb(void)
136 if (strstr(buf, "console=ttyS1")) { 136 if (strstr(buf, "console=ttyS1")) {
137 struct ssb_serial_port port; 137 struct ssb_serial_port port;
138 138
139 printk(KERN_DEBUG "Swapping serial ports!\n"); 139 pr_debug("Swapping serial ports!\n");
140 /* swap serial ports */ 140 /* swap serial ports */
141 memcpy(&port, &mcore->serial_ports[0], sizeof(port)); 141 memcpy(&port, &mcore->serial_ports[0], sizeof(port));
142 memcpy(&mcore->serial_ports[0], &mcore->serial_ports[1], 142 memcpy(&mcore->serial_ports[0], &mcore->serial_ports[1],
@@ -168,7 +168,7 @@ void __init plat_mem_setup(void)
168 struct cpuinfo_mips *c = &current_cpu_data; 168 struct cpuinfo_mips *c = &current_cpu_data;
169 169
170 if ((c->cputype == CPU_74K) || (c->cputype == CPU_1074K)) { 170 if ((c->cputype == CPU_74K) || (c->cputype == CPU_1074K)) {
171 printk(KERN_INFO "bcm47xx: using bcma bus\n"); 171 pr_info("Using bcma bus\n");
172#ifdef CONFIG_BCM47XX_BCMA 172#ifdef CONFIG_BCM47XX_BCMA
173 bcm47xx_bus_type = BCM47XX_BUS_TYPE_BCMA; 173 bcm47xx_bus_type = BCM47XX_BUS_TYPE_BCMA;
174 bcm47xx_sprom_register_fallbacks(); 174 bcm47xx_sprom_register_fallbacks();
@@ -179,7 +179,7 @@ void __init plat_mem_setup(void)
179#endif 179#endif
180#endif 180#endif
181 } else { 181 } else {
182 printk(KERN_INFO "bcm47xx: using ssb bus\n"); 182 pr_info("Using ssb bus\n");
183#ifdef CONFIG_BCM47XX_SSB 183#ifdef CONFIG_BCM47XX_SSB
184 bcm47xx_bus_type = BCM47XX_BUS_TYPE_SSB; 184 bcm47xx_bus_type = BCM47XX_BUS_TYPE_SSB;
185 bcm47xx_sprom_register_fallbacks(); 185 bcm47xx_sprom_register_fallbacks();