Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40447
b: refs/heads/master
c: f901b8c
h: refs/heads/master
i:
  40445: 566123c
  40443: b622761
  40439: 8f1f2fa
  40431: d400ce8
  40415: e52ecc3
  40383: 346ccad
  40319: 055b192
  40191: 2c6f516
  39935: b6c8e1c
v: v3
  • Loading branch information
Dominik Brodowski committed Oct 26, 2006
1 parent 4d1ac13 commit 88bcbb1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4deb7c1ed2b622b565c5330b475adc5a6cea30da
refs/heads/master: f901b8c46fa9748b9d6836e9b158cf7be89447f1
13 changes: 10 additions & 3 deletions trunk/drivers/pcmcia/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,7 @@ static int pcmcia_requery(struct device *dev, void * _data)
static void pcmcia_bus_rescan(struct pcmcia_socket *skt)
{
int no_devices=0;
int ret = 0;
unsigned long flags;

/* must be called with skt_mutex held */
Expand All @@ -729,7 +730,7 @@ static void pcmcia_bus_rescan(struct pcmcia_socket *skt)
* missing resource information or other trouble, we need to
* do this now. */
if (no_devices) {
int ret = pcmcia_card_add(skt);
ret = pcmcia_card_add(skt);
if (ret)
return;
}
Expand All @@ -741,7 +742,9 @@ static void pcmcia_bus_rescan(struct pcmcia_socket *skt)

/* we re-scan all devices, not just the ones connected to this
* socket. This does not matter, though. */
bus_rescan_devices(&pcmcia_bus_type);
ret = bus_rescan_devices(&pcmcia_bus_type);
if (ret)
printk(KERN_INFO "pcmcia: bus_rescan_devices failed\n");
}

static inline int pcmcia_devmatch(struct pcmcia_device *dev,
Expand Down Expand Up @@ -1001,6 +1004,7 @@ static ssize_t pcmcia_store_allow_func_id_match(struct device *dev,
struct device_attribute *attr, const char *buf, size_t count)
{
struct pcmcia_device *p_dev = to_pcmcia_dev(dev);
int ret;

if (!count)
return -EINVAL;
Expand All @@ -1009,7 +1013,10 @@ static ssize_t pcmcia_store_allow_func_id_match(struct device *dev,
p_dev->allow_func_id_match = 1;
mutex_unlock(&p_dev->socket->skt_mutex);

bus_rescan_devices(&pcmcia_bus_type);
ret = bus_rescan_devices(&pcmcia_bus_type);
if (ret)
printk(KERN_INFO "pcmcia: bus_rescan_devices failed after "
"allowing func_id matches\n");

return count;
}
Expand Down

0 comments on commit 88bcbb1

Please sign in to comment.