X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Fhwmon%2Fjz4740-hwmon.c;h=a183e488db78ba2531f349c688ff0283764f2578;hb=76540969b1cf26349eb8867b57657b03c89025e5;hp=e0d66b9590abd21d91440abe3fc7015dc21f4276;hpb=077931446b85e7858bf9dc0927cd116669b965d2;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/hwmon/jz4740-hwmon.c b/drivers/hwmon/jz4740-hwmon.c index e0d66b9590ab..a183e488db78 100644 --- a/drivers/hwmon/jz4740-hwmon.c +++ b/drivers/hwmon/jz4740-hwmon.c @@ -66,7 +66,7 @@ static ssize_t jz4740_hwmon_read_adcin(struct device *dev, mutex_lock(&hwmon->lock); - INIT_COMPLETION(*completion); + reinit_completion(completion); enable_irq(hwmon->irq); hwmon->cell->enable(to_platform_device(dev));