Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[ARM] pxa/spitz: fix spi cs on spitz

On spitz configure SPI CS GPIOs as outputs to unbreak spi chip selection.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: Eric Miao <eric.miao@marvell.com>

authored by

Dmitry Baryshkov and committed by
Eric Miao
b6e642e4 e946217e

+12
+12
arch/arm/mach-pxa/spitz.c
··· 385 385 if (err) 386 386 goto err_free_2; 387 387 388 + err = gpio_direction_output(SPITZ_GPIO_ADS7846_CS, 1); 389 + if (err) 390 + goto err_free_3; 391 + err = gpio_direction_output(SPITZ_GPIO_LCDCON_CS, 1); 392 + if (err) 393 + goto err_free_3; 394 + err = gpio_direction_output(SPITZ_GPIO_MAX1111_CS, 1); 395 + if (err) 396 + goto err_free_3; 397 + 388 398 if (machine_is_akita()) { 389 399 spitz_lcdcon_info.gpio_backlight_cont = AKITA_GPIO_BACKLIGHT_CONT; 390 400 spitz_lcdcon_info.gpio_backlight_on = AKITA_GPIO_BACKLIGHT_ON; ··· 404 394 spi_register_board_info(ARRAY_AND_SIZE(spitz_spi_devices)); 405 395 return; 406 396 397 + err_free_3: 398 + gpio_free(SPITZ_GPIO_MAX1111_CS); 407 399 err_free_2: 408 400 gpio_free(SPITZ_GPIO_LCDCON_CS); 409 401 err_free_1: