Fix an off-by-one error in the pm8xxx-regulator probe function
which allows regulators configured with an incorrect type to
probe successfully.
Change-Id: I013abbd7098735863e96ac5c8eb69329ea93d136
Signed-off-by: David Collins <collinsd@codeaurora.org>