aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/netlogic/xlr/platform.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2013-01-22 06:59:30 -0500
committerRalf Baechle <ralf@linux-mips.org>2013-02-01 04:00:22 -0500
commit7034228792cc561e79ff8600f02884bd4c80e287 (patch)
tree89b77af37d087d9de236fc5d21f60bf552d0a2c6 /arch/mips/netlogic/xlr/platform.c
parent405ab01c70e18058d9c01a1256769a61fc65413e (diff)
MIPS: Whitespace cleanup.
Having received another series of whitespace patches I decided to do this once and for all rather than dealing with this kind of patches trickling in forever. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/netlogic/xlr/platform.c')
-rw-r--r--arch/mips/netlogic/xlr/platform.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/mips/netlogic/xlr/platform.c b/arch/mips/netlogic/xlr/platform.c
index 507230eeb768..e287277d32b0 100644
--- a/arch/mips/netlogic/xlr/platform.c
+++ b/arch/mips/netlogic/xlr/platform.c
@@ -162,18 +162,18 @@ int xls_platform_usb_init(void)
162 nlm_write_reg(usb_mmio, 50, 0x1f000000); 162 nlm_write_reg(usb_mmio, 50, 0x1f000000);
163 163
164 /* Enable ports */ 164 /* Enable ports */
165 nlm_write_reg(usb_mmio, 1, 0x07000500); 165 nlm_write_reg(usb_mmio, 1, 0x07000500);
166 166
167 val = nlm_read_reg(gpio_mmio, 21); 167 val = nlm_read_reg(gpio_mmio, 21);
168 if (((val >> 22) & 0x01) == 0) { 168 if (((val >> 22) & 0x01) == 0) {
169 pr_info("Detected USB Device mode - Not supported!\n"); 169 pr_info("Detected USB Device mode - Not supported!\n");
170 nlm_write_reg(usb_mmio, 0, 0x01000000); 170 nlm_write_reg(usb_mmio, 0, 0x01000000);
171 return 0; 171 return 0;
172 } 172 }
173 173
174 pr_info("Detected USB Host mode - Adding XLS USB devices.\n"); 174 pr_info("Detected USB Host mode - Adding XLS USB devices.\n");
175 /* Clear reset, host mode */ 175 /* Clear reset, host mode */
176 nlm_write_reg(usb_mmio, 0, 0x02000000); 176 nlm_write_reg(usb_mmio, 0, 0x02000000);
177 177
178 /* Memory resource for various XLS usb ports */ 178 /* Memory resource for various XLS usb ports */
179 usb_mmio = nlm_mmio_base(NETLOGIC_IO_USB_0_OFFSET); 179 usb_mmio = nlm_mmio_base(NETLOGIC_IO_USB_0_OFFSET);
@@ -221,8 +221,8 @@ static struct resource i2c_resources[] = {
221}; 221};
222 222
223static struct platform_device nlm_xlr_i2c_1 = { 223static struct platform_device nlm_xlr_i2c_1 = {
224 .name = "xlr-i2cbus", 224 .name = "xlr-i2cbus",
225 .id = 1, 225 .id = 1,
226 .num_resources = 1, 226 .num_resources = 1,
227 .resource = i2c_resources, 227 .resource = i2c_resources,
228}; 228};