drivers/rtc/rtc-max8997.c: fix incorrect return value on error