drivers/rtc/rtc-hid-sensor-time.c: improve error handling when rtc register fails
authorAlexander Holler <holler@ahsoftware.de>
Wed, 11 Sep 2013 21:24:20 +0000 (14:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:58:55 +0000 (15:58 -0700)
commit7707bda3ee4aa4415090755c22e5a9c03fc530dc
tree9fc4f89cc9ffcc0dd494df142093a68007f1660a
parent666a584d3a765a914642f80deef7a33fb309df5d
drivers/rtc/rtc-hid-sensor-time.c: improve error handling when rtc register fails

Stop processing hid input when registering the RTC fails and handle a NULL
returned from devm_rtc_device_register() as a failure too.

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-hid-sensor-time.c