Alexandre Belloni e6000a438e rtc: tps65910: fix possible race condition
The IRQ is requested before the struct rtc is allocated and registered, but
this struct is used in the IRQ handler. This may lead to a NULL pointer
dereference.

Switch to devm_rtc_allocate_device/rtc_register_device to allocate the rtc
before requesting the IRQ.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2018-05-17 22:37:07 +02:00
..
2018-04-10 10:22:27 -07:00
2018-04-10 10:22:27 -07:00
2018-03-27 10:45:05 +02:00
2018-05-17 22:23:14 +02:00
2018-03-17 14:20:56 +01:00
2018-05-03 22:08:00 +02:00
2018-05-03 22:08:00 +02:00
2018-05-03 22:08:00 +02:00
2018-05-03 22:08:00 +02:00
2017-09-01 01:10:11 +02:00
2018-05-03 22:08:00 +02:00
2018-05-03 22:08:00 +02:00
2017-09-01 01:10:11 +02:00
2016-05-20 12:33:51 +02:00
2018-03-17 14:20:50 +01:00
2018-05-03 22:08:00 +02:00
2018-05-03 22:46:25 +02:00
2018-05-03 22:08:00 +02:00
2018-03-17 14:20:56 +01:00
2018-05-03 22:08:00 +02:00
2018-05-03 22:08:00 +02:00
2018-05-03 22:08:00 +02:00
2017-08-22 12:05:21 +02:00
2016-05-20 12:33:51 +02:00
2017-09-05 09:55:02 +02:00
2018-03-17 14:20:57 +01:00
2017-08-24 11:03:35 +02:00
2018-05-03 22:11:50 +02:00
2018-05-03 22:08:00 +02:00
2018-05-03 22:08:00 +02:00
2018-03-17 14:20:54 +01:00
2018-05-03 22:08:00 +02:00
2018-05-03 22:46:25 +02:00
2016-05-20 12:33:51 +02:00
2018-05-03 22:08:00 +02:00