diff options
-rw-r--r-- | drivers/rtc/rtc-88pm860x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-88pm860x.c b/drivers/rtc/rtc-88pm860x.c index d25282b4a7dd..73697e4b18a9 100644 --- a/drivers/rtc/rtc-88pm860x.c +++ b/drivers/rtc/rtc-88pm860x.c | |||
@@ -421,7 +421,7 @@ static int pm860x_rtc_remove(struct platform_device *pdev) | |||
421 | struct pm860x_rtc_info *info = platform_get_drvdata(pdev); | 421 | struct pm860x_rtc_info *info = platform_get_drvdata(pdev); |
422 | 422 | ||
423 | #ifdef VRTC_CALIBRATION | 423 | #ifdef VRTC_CALIBRATION |
424 | flush_scheduled_work(); | 424 | cancel_delayed_work_sync(&info->calib_work); |
425 | /* disable measurement */ | 425 | /* disable measurement */ |
426 | pm860x_set_bits(info->i2c, PM8607_MEAS_EN2, MEAS2_VRTC, 0); | 426 | pm860x_set_bits(info->i2c, PM8607_MEAS_EN2, MEAS2_VRTC, 0); |
427 | #endif /* VRTC_CALIBRATION */ | 427 | #endif /* VRTC_CALIBRATION */ |