diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2014-03-14 05:26:45 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-03-14 05:26:45 -0400 |
commit | 9e294427f6e427dbaf46140303acded06365f53c (patch) | |
tree | 0669100cbd79fe8612463900171c98873d8dc454 /drivers/gpio | |
parent | 23600969ff137cf4c3bc9098f77e381de334e3f7 (diff) | |
parent | fa389e220254c69ffae0d403eac4146171062d08 (diff) |
Merge tag 'v3.14-rc6' into devel
Linux 3.14-rc6
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/Kconfig | 1 | ||||
-rw-r--r-- | drivers/gpio/gpio-bcm-kona.c | 4 | ||||
-rw-r--r-- | drivers/gpio/gpio-clps711x.c | 1 | ||||
-rw-r--r-- | drivers/gpio/gpio-intel-mid.c | 4 | ||||
-rw-r--r-- | drivers/gpio/gpio-xtensa.c | 16 |
5 files changed, 22 insertions, 4 deletions
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 149557f9e275..8ca94e10aed5 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig | |||
@@ -419,6 +419,7 @@ config GPIO_GRGPIO | |||
419 | 419 | ||
420 | config GPIO_TB10X | 420 | config GPIO_TB10X |
421 | bool | 421 | bool |
422 | select GENERIC_IRQ_CHIP | ||
422 | select OF_GPIO | 423 | select OF_GPIO |
423 | 424 | ||
424 | comment "I2C GPIO expanders:" | 425 | comment "I2C GPIO expanders:" |
diff --git a/drivers/gpio/gpio-bcm-kona.c b/drivers/gpio/gpio-bcm-kona.c index b4f20f785708..5622cfb8325a 100644 --- a/drivers/gpio/gpio-bcm-kona.c +++ b/drivers/gpio/gpio-bcm-kona.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2012-2013 Broadcom Corporation | 2 | * Copyright (C) 2012-2014 Broadcom Corporation |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or | 4 | * This program is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU General Public License as | 5 | * modify it under the terms of the GNU General Public License as |
@@ -676,6 +676,6 @@ static struct platform_driver bcm_kona_gpio_driver = { | |||
676 | 676 | ||
677 | module_platform_driver(bcm_kona_gpio_driver); | 677 | module_platform_driver(bcm_kona_gpio_driver); |
678 | 678 | ||
679 | MODULE_AUTHOR("Broadcom"); | 679 | MODULE_AUTHOR("Broadcom Corporation <bcm-kernel-feedback-list@broadcom.com>"); |
680 | MODULE_DESCRIPTION("Broadcom Kona GPIO Driver"); | 680 | MODULE_DESCRIPTION("Broadcom Kona GPIO Driver"); |
681 | MODULE_LICENSE("GPL v2"); | 681 | MODULE_LICENSE("GPL v2"); |
diff --git a/drivers/gpio/gpio-clps711x.c b/drivers/gpio/gpio-clps711x.c index 20a7839e31ef..e1e861239e95 100644 --- a/drivers/gpio/gpio-clps711x.c +++ b/drivers/gpio/gpio-clps711x.c | |||
@@ -98,3 +98,4 @@ module_platform_driver(clps711x_gpio_driver); | |||
98 | MODULE_LICENSE("GPL"); | 98 | MODULE_LICENSE("GPL"); |
99 | MODULE_AUTHOR("Alexander Shiyan <shc_work@mail.ru>"); | 99 | MODULE_AUTHOR("Alexander Shiyan <shc_work@mail.ru>"); |
100 | MODULE_DESCRIPTION("CLPS711X GPIO driver"); | 100 | MODULE_DESCRIPTION("CLPS711X GPIO driver"); |
101 | MODULE_ALIAS("platform:clps711x-gpio"); | ||
diff --git a/drivers/gpio/gpio-intel-mid.c b/drivers/gpio/gpio-intel-mid.c index 62860d703385..3a34bb151fd4 100644 --- a/drivers/gpio/gpio-intel-mid.c +++ b/drivers/gpio/gpio-intel-mid.c | |||
@@ -390,8 +390,8 @@ static const struct irq_domain_ops intel_gpio_irq_ops = { | |||
390 | 390 | ||
391 | static int intel_gpio_runtime_idle(struct device *dev) | 391 | static int intel_gpio_runtime_idle(struct device *dev) |
392 | { | 392 | { |
393 | pm_schedule_suspend(dev, 500); | 393 | int err = pm_schedule_suspend(dev, 500); |
394 | return -EBUSY; | 394 | return err ?: -EBUSY; |
395 | } | 395 | } |
396 | 396 | ||
397 | static const struct dev_pm_ops intel_gpio_pm_ops = { | 397 | static const struct dev_pm_ops intel_gpio_pm_ops = { |
diff --git a/drivers/gpio/gpio-xtensa.c b/drivers/gpio/gpio-xtensa.c index 1d136eceda62..7081304d6797 100644 --- a/drivers/gpio/gpio-xtensa.c +++ b/drivers/gpio/gpio-xtensa.c | |||
@@ -40,6 +40,8 @@ | |||
40 | #error GPIO32 option is not enabled for your xtensa core variant | 40 | #error GPIO32 option is not enabled for your xtensa core variant |
41 | #endif | 41 | #endif |
42 | 42 | ||
43 | #if XCHAL_HAVE_CP | ||
44 | |||
43 | static inline unsigned long enable_cp(unsigned long *cpenable) | 45 | static inline unsigned long enable_cp(unsigned long *cpenable) |
44 | { | 46 | { |
45 | unsigned long flags; | 47 | unsigned long flags; |
@@ -57,6 +59,20 @@ static inline void disable_cp(unsigned long flags, unsigned long cpenable) | |||
57 | local_irq_restore(flags); | 59 | local_irq_restore(flags); |
58 | } | 60 | } |
59 | 61 | ||
62 | #else | ||
63 | |||
64 | static inline unsigned long enable_cp(unsigned long *cpenable) | ||
65 | { | ||
66 | *cpenable = 0; /* avoid uninitialized value warning */ | ||
67 | return 0; | ||
68 | } | ||
69 | |||
70 | static inline void disable_cp(unsigned long flags, unsigned long cpenable) | ||
71 | { | ||
72 | } | ||
73 | |||
74 | #endif /* XCHAL_HAVE_CP */ | ||
75 | |||
60 | static int xtensa_impwire_get_direction(struct gpio_chip *gc, unsigned offset) | 76 | static int xtensa_impwire_get_direction(struct gpio_chip *gc, unsigned offset) |
61 | { | 77 | { |
62 | return 1; /* input only */ | 78 | return 1; /* input only */ |