diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-08-24 07:02:04 +0200 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-08-24 07:02:04 +0200 |
commit | b2382b363df828f25e35ed8b70a3da33b29b2a64 (patch) | |
tree | 23aa2e70ba4650390c9281b3696172313bdb0f38 /drivers/base/bus.c | |
parent | ieee80211: remove last uses of compat define WLAN_CAPABILITY_BSS (diff) | |
parent | Linux v2.6.13-rc7 (diff) | |
download | linux-b2382b363df828f25e35ed8b70a3da33b29b2a64.tar.xz linux-b2382b363df828f25e35ed8b70a3da33b29b2a64.zip |
Merge upstream into ieee80211.
Hand-fix merge conflict in drivers/usb/net/zd1201.c.
Diffstat (limited to 'drivers/base/bus.c')
-rw-r--r-- | drivers/base/bus.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/base/bus.c b/drivers/base/bus.c index 96fe2f956754..ab53832d57e5 100644 --- a/drivers/base/bus.c +++ b/drivers/base/bus.c @@ -180,7 +180,9 @@ static ssize_t driver_bind(struct device_driver *drv, up(&dev->sem); put_device(dev); } - return err; + if (err) + return err; + return count; } static DRIVER_ATTR(bind, S_IWUSR, NULL, driver_bind); |