Skip to content

Commit 605dc77

Browse files
committed
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
2 parents fe26adf + d3fdd70 commit 605dc77

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

MAINTAINERS

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10799,11 +10799,9 @@ S: Maintained
1079910799
F: drivers/pci/dwc/*spear*
1080010800

1080110801
PCMCIA SUBSYSTEM
10802-
P: Linux PCMCIA Team
10803-
10804-
W: http://lists.infradead.org/mailman/listinfo/linux-pcmcia
10802+
M: Dominik Brodowski <[email protected]>
1080510803
T: git git://git.kernel.org/pub/scm/linux/kernel/git/brodo/pcmcia.git
10806-
S: Maintained
10804+
S: Odd Fixes
1080710805
F: Documentation/pcmcia/
1080810806
F: tools/pcmcia/
1080910807
F: drivers/pcmcia/

drivers/pcmcia/rsrc_nonstatic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ static int do_validate_mem(struct pcmcia_socket *s,
367367
}
368368
}
369369

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",
371371
base, base+size-1, res1, res2, ret, info1, info2);
372372

373373
free_region(res2);

drivers/pcmcia/soc_common.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,16 @@ static int soc_pcmcia_hw_init(struct soc_pcmcia_socket *skt)
191191
{
192192
int ret = 0, i;
193193

194-
clk_prepare_enable(skt->clk);
194+
ret = clk_prepare_enable(skt->clk);
195+
if (ret)
196+
return ret;
195197

196198
if (skt->ops->hw_init) {
197199
ret = skt->ops->hw_init(skt);
198-
if (ret)
200+
if (ret) {
201+
clk_disable_unprepare(skt->clk);
199202
return ret;
203+
}
200204
}
201205

202206
for (i = 0; i < ARRAY_SIZE(skt->stat); i++) {

0 commit comments

Comments
 (0)