OSDN Git Service

rtc: ds1307: simplify hwmon config
[uclinux-h8/linux.git] / drivers / rtc / rtc-ds1307.c
index 0162a60..4b2b462 100644 (file)
@@ -1042,7 +1042,7 @@ static u8 ds1307_trickle_init(struct ds1307 *ds1307,
 
 /*----------------------------------------------------------------------*/
 
-#ifdef CONFIG_RTC_DRV_DS1307_HWMON
+#if IS_REACHABLE(CONFIG_HWMON)
 
 /*
  * Temperature sensor support for ds3231 devices.