Re: [PATCH v2] pinctrl: samsung: Add ifdef CONFIG_OF_GPIO guard for gc->of_node

From: Linus Walleij
Date: Tue Nov 06 2012 - 03:57:30 EST


On Tue, Nov 6, 2012 at 6:03 AM, Thomas Abraham
<thomas.abraham@xxxxxxxxxx> wrote:
> On 5 November 2012 21:14, Axel Lin <axel.lin@xxxxxxxxxx> wrote:

>> +#if defined(CONFIG_OF_GPIO)
>> gc->of_node = bank->of_node;
>> +#endif
>
> The samsung pinctrl driver supports only device tree enabled
> platforms. So instead of adding the above #if, would it not be better
> to add 'select OF_GPIO' for Samsung pinctrl driver in
> drivers/pinctrl/Kconfig. ?

Or edit the Samsung driver to depend on OF_GPIO, this is probably
better.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/