From: Alex Raimondi Date: Mon, 13 Oct 2008 14:03:45 +0000 (+0200) Subject: avr32: Fix bug in LCD pin setup on port C X-Git-Tag: v2.6.28-rc1~22^2^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6090065663ba5daab82d116d3040dc924e8cf79f;p=linux-2.6-omap-h63xx.git avr32: Fix bug in LCD pin setup on port C Bug was introduced with the new at32_select_periph function. Signed-off-by: Alex Raimondi Signed-off-by: Haavard Skinnemoen --- diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c index 813b6844cdf..8c435a6f4a6 100644 --- a/arch/avr32/mach-at32ap/at32ap700x.c +++ b/arch/avr32/mach-at32ap/at32ap700x.c @@ -1470,7 +1470,7 @@ at32_add_device_lcdc(unsigned int id, struct atmel_lcdfb_info *data, pin_mask = ATMEL_LCDC_PRI_24BIT | ATMEL_LCDC_PRI_CONTROL; /* LCDC on port C */ - portc_mask = (pin_mask & 0xfff80000) >> 19; + portc_mask = pin_mask & 0xfff80000; select_peripheral(PIOC, portc_mask, PERIPH_A, 0); /* LCDC on port D */