diff options
author | Stefan Christ <s.christ@phytec.de> | 2016-07-05 07:53:16 -0400 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2016-07-21 14:06:47 -0400 |
commit | e89487fef537975f2c95c6c41316201c2e0869ab (patch) | |
tree | d70075b90b953467f50286189eed2a102aa08e1c /drivers/rtc | |
parent | 0d981f81e0fded15827a8224234b3733e9c0038d (diff) |
rtc: m41t80: make it a real error message
It should be a real error message, when the driver cannot enable the IRQ
of the device.
Signed-off-by: Stefan Christ <s.christ@phytec.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc')
-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 61b911c1b596..042d6a244aad 100644 --- a/drivers/rtc/rtc-m41t80.c +++ b/drivers/rtc/rtc-m41t80.c | |||
@@ -244,7 +244,7 @@ static int m41t80_alarm_irq_enable(struct device *dev, unsigned int enabled) | |||
244 | 244 | ||
245 | retval = i2c_smbus_write_byte_data(client, M41T80_REG_ALARM_MON, flags); | 245 | retval = i2c_smbus_write_byte_data(client, M41T80_REG_ALARM_MON, flags); |
246 | if (retval < 0) { | 246 | if (retval < 0) { |
247 | dev_info(dev, "Unable to enable alarm IRQ %d\n", retval); | 247 | dev_err(dev, "Unable to enable alarm IRQ %d\n", retval); |
248 | return retval; | 248 | return retval; |
249 | } | 249 | } |
250 | return 0; | 250 | return 0; |