From: Axel Lin Date: Sun, 21 Sep 2014 04:32:59 +0000 (+0800) Subject: gpio: xgene: Remove unneeded #ifdef CONFIG_OF guard X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=513d3c0f40c8e22fac019d5b0694374d17fbe682;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git gpio: xgene: Remove unneeded #ifdef CONFIG_OF guard This driver depends on OF_GPIO, so it won't be built if !CONFIG_OF. Signed-off-by: Axel Lin Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-xgene.c b/drivers/gpio/gpio-xgene.c index 5fcdac409fef..7d489221dc1f 100644 --- a/drivers/gpio/gpio-xgene.c +++ b/drivers/gpio/gpio-xgene.c @@ -220,13 +220,11 @@ static int xgene_gpio_remove(struct platform_device *pdev) return 0; } -#ifdef CONFIG_OF static const struct of_device_id xgene_gpio_of_match[] = { { .compatible = "apm,xgene-gpio", }, {}, }; MODULE_DEVICE_TABLE(of, xgene_gpio_of_match); -#endif static struct platform_driver xgene_gpio_driver = { .driver = {