aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-device.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firewire/fw-device.c')
-rw-r--r--drivers/firewire/fw-device.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/firewire/fw-device.c b/drivers/firewire/fw-device.c
index 4877cdbc58cc..15721a776cd4 100644
--- a/drivers/firewire/fw-device.c
+++ b/drivers/firewire/fw-device.c
@@ -562,8 +562,11 @@ static int update_unit(struct device *dev, void *data)
562 struct fw_unit *unit = fw_unit(dev); 562 struct fw_unit *unit = fw_unit(dev);
563 struct fw_driver *driver = (struct fw_driver *)dev->driver; 563 struct fw_driver *driver = (struct fw_driver *)dev->driver;
564 564
565 if (is_fw_unit(dev) && driver != NULL && driver->update != NULL) 565 if (is_fw_unit(dev) && driver != NULL && driver->update != NULL) {
566 down(&dev->sem);
566 driver->update(unit); 567 driver->update(unit);
568 up(&dev->sem);
569 }
567 570
568 return 0; 571 return 0;
569} 572}