RE: [PATCH 12/13 v3] OMAP: GPIO: Implement GPIO as a platform device

2010-06-21 Thread Varadarajan, Charulatha
[snip] +static inline int init_gpio_info(struct platform_device *pdev) +{ + gpio_bank = kzalloc(gpio_bank_count * sizeof(struct gpio_bank), + GFP_KERNEL); This is the real issue with the gpio_bank_count. You are creating a global driver

Re: [PATCH 12/13 v3] OMAP: GPIO: Implement GPIO as a platform device

2010-06-16 Thread Benoit Cousson
On 6/15/2010 5:05 PM, Varadarajan, Charulatha wrote: From: Charulatha Vch...@ti.com This patch implements GPIO as a platform device. Also it implements OMAP2PLUS specific GPIO as HWMOD FW adapted device. OMAP2PLUS GPIO uses runtime APIs. GPIO APIs are used in machine_init functions. Hence it

[PATCH 12/13 v3] OMAP: GPIO: Implement GPIO as a platform device

2010-06-15 Thread Varadarajan, Charulatha
From: Charulatha V ch...@ti.com This patch implements GPIO as a platform device. Also it implements OMAP2PLUS specific GPIO as HWMOD FW adapted device. OMAP2PLUS GPIO uses runtime APIs. GPIO APIs are used in machine_init functions. Hence it is required to complete GPIO probe before machine_init.