aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorLaurent Navet <laurent.navet@gmail.com>2013-03-20 08:16:00 -0400
committerLinus Walleij <linus.walleij@linaro.org>2013-03-27 11:05:16 -0400
commitbe41cf589b0b7613c845802878afabc7e214cb79 (patch)
treec97db0f5dc19b132903c91dd32edea1d9d78fca1 /drivers/gpio
parente37f4af762125c87749cda0efb6c18199e49f0ed (diff)
gpio: gpio-sch.c: fix checkpatch error
Fix : gpio/gpio-sch.c:206: ERROR: switch and case should be at the same indent Also remove blank lines Signed-off-by: Laurent Navet <laurent.navet@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-sch.c74
1 files changed, 35 insertions, 39 deletions
diff --git a/drivers/gpio/gpio-sch.c b/drivers/gpio/gpio-sch.c
index 7e7b52be6e29..1e4de16ceb41 100644
--- a/drivers/gpio/gpio-sch.c
+++ b/drivers/gpio/gpio-sch.c
@@ -221,45 +221,41 @@ static int sch_gpio_probe(struct platform_device *pdev)
221 gpio_ba = res->start; 221 gpio_ba = res->start;
222 222
223 switch (id) { 223 switch (id) {
224 case PCI_DEVICE_ID_INTEL_SCH_LPC: 224 case PCI_DEVICE_ID_INTEL_SCH_LPC:
225 sch_gpio_core.base = 0; 225 sch_gpio_core.base = 0;
226 sch_gpio_core.ngpio = 10; 226 sch_gpio_core.ngpio = 10;
227 227 sch_gpio_resume.base = 10;
228 sch_gpio_resume.base = 10; 228 sch_gpio_resume.ngpio = 4;
229 sch_gpio_resume.ngpio = 4; 229 /*
230 230 * GPIO[6:0] enabled by default
231 /* 231 * GPIO7 is configured by the CMC as SLPIOVR
232 * GPIO[6:0] enabled by default 232 * Enable GPIO[9:8] core powered gpios explicitly
233 * GPIO7 is configured by the CMC as SLPIOVR 233 */
234 * Enable GPIO[9:8] core powered gpios explicitly 234 outb(0x3, gpio_ba + CGEN + 1);
235 */ 235 /*
236 outb(0x3, gpio_ba + CGEN + 1); 236 * SUS_GPIO[2:0] enabled by default
237 /* 237 * Enable SUS_GPIO3 resume powered gpio explicitly
238 * SUS_GPIO[2:0] enabled by default 238 */
239 * Enable SUS_GPIO3 resume powered gpio explicitly 239 outb(0x8, gpio_ba + RGEN);
240 */ 240 break;
241 outb(0x8, gpio_ba + RGEN); 241
242 break; 242 case PCI_DEVICE_ID_INTEL_ITC_LPC:
243 243 sch_gpio_core.base = 0;
244 case PCI_DEVICE_ID_INTEL_ITC_LPC: 244 sch_gpio_core.ngpio = 5;
245 sch_gpio_core.base = 0; 245 sch_gpio_resume.base = 5;
246 sch_gpio_core.ngpio = 5; 246 sch_gpio_resume.ngpio = 9;
247 247 break;
248 sch_gpio_resume.base = 5; 248
249 sch_gpio_resume.ngpio = 9; 249 case PCI_DEVICE_ID_INTEL_CENTERTON_ILB:
250 break; 250 sch_gpio_core.base = 0;
251 251 sch_gpio_core.ngpio = 21;
252 case PCI_DEVICE_ID_INTEL_CENTERTON_ILB: 252 sch_gpio_resume.base = 21;
253 sch_gpio_core.base = 0; 253 sch_gpio_resume.ngpio = 9;
254 sch_gpio_core.ngpio = 21; 254 break;
255 255
256 sch_gpio_resume.base = 21; 256 default:
257 sch_gpio_resume.ngpio = 9; 257 err = -ENODEV;
258 break; 258 goto err_sch_gpio_core;
259
260 default:
261 err = -ENODEV;
262 goto err_sch_gpio_core;
263 } 259 }
264 260
265 sch_gpio_core.dev = &pdev->dev; 261 sch_gpio_core.dev = &pdev->dev;