aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid')
-rw-r--r--drivers/hid/hid-core.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index af08ce7207d9..bce53fa0e166 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -1619,11 +1619,7 @@ static ssize_t store_new_id(struct device_driver *drv, const char *buf,
1619 list_add_tail(&dynid->list, &hdrv->dyn_list); 1619 list_add_tail(&dynid->list, &hdrv->dyn_list);
1620 spin_unlock(&hdrv->dyn_lock); 1620 spin_unlock(&hdrv->dyn_lock);
1621 1621
1622 ret = 0; 1622 ret = driver_attach(&hdrv->driver);
1623 if (get_driver(&hdrv->driver)) {
1624 ret = driver_attach(&hdrv->driver);
1625 put_driver(&hdrv->driver);
1626 }
1627 1623
1628 return ret ? : count; 1624 return ret ? : count;
1629} 1625}