diff options
-rw-r--r-- | drivers/rtc/rtc-m41t80.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-m41t80.c b/drivers/rtc/rtc-m41t80.c index 316bfaa80872..3d451ece253c 100644 --- a/drivers/rtc/rtc-m41t80.c +++ b/drivers/rtc/rtc-m41t80.c | |||
@@ -803,6 +803,7 @@ static int m41t80_probe(struct i2c_client *client, | |||
803 | 803 | ||
804 | #ifdef CONFIG_RTC_DRV_M41T80_WDT | 804 | #ifdef CONFIG_RTC_DRV_M41T80_WDT |
805 | if (clientdata->features & M41T80_FEATURE_HT) { | 805 | if (clientdata->features & M41T80_FEATURE_HT) { |
806 | save_client = client; | ||
806 | rc = misc_register(&wdt_dev); | 807 | rc = misc_register(&wdt_dev); |
807 | if (rc) | 808 | if (rc) |
808 | goto exit; | 809 | goto exit; |
@@ -811,7 +812,6 @@ static int m41t80_probe(struct i2c_client *client, | |||
811 | misc_deregister(&wdt_dev); | 812 | misc_deregister(&wdt_dev); |
812 | goto exit; | 813 | goto exit; |
813 | } | 814 | } |
814 | save_client = client; | ||
815 | } | 815 | } |
816 | #endif | 816 | #endif |
817 | return 0; | 817 | return 0; |