[PATCH] drivers/mfd/sm501.c: fix an off-by-one