All of lore.kernel.org
 help / color / mirror / Atom feed
* [rtc-linux] [PATCH 1/2] rtc: m41t80: make it a real error message
@ 2016-07-05 11:53 Stefan Christ
  2016-07-05 11:53 ` [rtc-linux] [PATCH 2/2] rtc: m41t80: add suspend handlers for alarm IRQ Stefan Christ
  2016-07-25 20:30 ` [rtc-linux] Re: [PATCH 1/2] rtc: m41t80: make it a real error message Alexandre Belloni
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Christ @ 2016-07-05 11:53 UTC (permalink / raw)
  To: a.zummo, alexandre.belloni, rtc-linux

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>
---
 drivers/rtc/rtc-m41t80.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/rtc/rtc-m41t80.c b/drivers/rtc/rtc-m41t80.c
index d1bf93a..04e8577 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)
 
 	retval = i2c_smbus_write_byte_data(client, M41T80_REG_ALARM_MON, flags);
 	if (retval < 0) {
-		dev_info(dev, "Unable to enable alarm IRQ %d\n", retval);
+		dev_err(dev, "Unable to enable alarm IRQ %d\n", retval);
 		return retval;
 	}
 	return 0;
-- 
1.9.1

-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-07-25 20:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-05 11:53 [rtc-linux] [PATCH 1/2] rtc: m41t80: make it a real error message Stefan Christ
2016-07-05 11:53 ` [rtc-linux] [PATCH 2/2] rtc: m41t80: add suspend handlers for alarm IRQ Stefan Christ
2016-07-25 20:30   ` [rtc-linux] " Alexandre Belloni
2016-07-25 20:30 ` [rtc-linux] Re: [PATCH 1/2] rtc: m41t80: make it a real error message Alexandre Belloni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.