diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-02-08 14:48:49 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-02-08 14:48:49 -0500 |
commit | 605dc7761d2701f73c17183649de0e3044609817 (patch) | |
tree | 2fc9ed48d50e0552f5f48d23c725930bb950973f | |
parent | fe26adf431a58d620819618e52a10bf9b5cfde52 (diff) | |
parent | d3fdd701248290b511683ff8d348073295f07833 (diff) |
Merge branch 'pcmcia' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia
Pull pcmcia updates from Dominik Brodowski:
"The linux-pcmcia mailing list was shut down, so offer an alternative
path for patches in MAINTAINERS.
Also, throw in two odd fixes for the pcmcia subsystem"
* 'pcmcia' of git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia:
pcmcia: soc_common: Handle return value of clk_prepare_enable
pcmcia: use proper printk format for resource
pcmcia: remove mailing list, update MAINTAINERS
-rw-r--r-- | MAINTAINERS | 6 | ||||
-rw-r--r-- | drivers/pcmcia/rsrc_nonstatic.c | 2 | ||||
-rw-r--r-- | drivers/pcmcia/soc_common.c | 8 |
3 files changed, 9 insertions, 7 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index cf4258338587..4c7a2fdc9b34 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
@@ -10799,11 +10799,9 @@ S: Maintained | |||
10799 | F: drivers/pci/dwc/*spear* | 10799 | F: drivers/pci/dwc/*spear* |
10800 | 10800 | ||
10801 | PCMCIA SUBSYSTEM | 10801 | PCMCIA SUBSYSTEM |
10802 | P: Linux PCMCIA Team | 10802 | M: Dominik Brodowski <linux@dominikbrodowski.net> |
10803 | L: linux-pcmcia@lists.infradead.org | ||
10804 | W: http://lists.infradead.org/mailman/listinfo/linux-pcmcia | ||
10805 | T: git git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia.git | 10803 | T: git git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia.git |
10806 | S: Maintained | 10804 | S: Odd Fixes |
10807 | F: Documentation/pcmcia/ | 10805 | F: Documentation/pcmcia/ |
10808 | F: tools/pcmcia/ | 10806 | F: tools/pcmcia/ |
10809 | F: drivers/pcmcia/ | 10807 | F: drivers/pcmcia/ |
diff --git a/drivers/pcmcia/rsrc_nonstatic.c b/drivers/pcmcia/rsrc_nonstatic.c index 5ef7b46a2578..49377d502b74 100644 --- a/drivers/pcmcia/rsrc_nonstatic.c +++ b/drivers/pcmcia/rsrc_nonstatic.c | |||
@@ -367,7 +367,7 @@ static int do_validate_mem(struct pcmcia_socket *s, | |||
367 | } | 367 | } |
368 | } | 368 | } |
369 | 369 | ||
370 | dev_dbg(&s->dev, "cs: memory probe 0x%06lx-0x%06lx: %p %p %u %u %u", | 370 | dev_dbg(&s->dev, "cs: memory probe 0x%06lx-0x%06lx: %pr %pr %u %u %u", |
371 | base, base+size-1, res1, res2, ret, info1, info2); | 371 | base, base+size-1, res1, res2, ret, info1, info2); |
372 | 372 | ||
373 | free_region(res2); | 373 | free_region(res2); |
diff --git a/drivers/pcmcia/soc_common.c b/drivers/pcmcia/soc_common.c index 764650eb8897..c5f2344c189b 100644 --- a/drivers/pcmcia/soc_common.c +++ b/drivers/pcmcia/soc_common.c | |||
@@ -191,12 +191,16 @@ static int soc_pcmcia_hw_init(struct soc_pcmcia_socket *skt) | |||
191 | { | 191 | { |
192 | int ret = 0, i; | 192 | int ret = 0, i; |
193 | 193 | ||
194 | clk_prepare_enable(skt->clk); | 194 | ret = clk_prepare_enable(skt->clk); |
195 | if (ret) | ||
196 | return ret; | ||
195 | 197 | ||
196 | if (skt->ops->hw_init) { | 198 | if (skt->ops->hw_init) { |
197 | ret = skt->ops->hw_init(skt); | 199 | ret = skt->ops->hw_init(skt); |
198 | if (ret) | 200 | if (ret) { |
201 | clk_disable_unprepare(skt->clk); | ||
199 | return ret; | 202 | return ret; |
203 | } | ||
200 | } | 204 | } |
201 | 205 | ||
202 | for (i = 0; i < ARRAY_SIZE(skt->stat); i++) { | 206 | for (i = 0; i < ARRAY_SIZE(skt->stat); i++) { |