greybus: arche-apb: NULL is a valid regulator
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 11 Jan 2016 05:59:12 +0000 (11:29 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 11 Jan 2016 23:58:01 +0000 (15:58 -0800)
commitdcf77c397918178af09b72f63145eed3fde788ba
treec5292e6249a5a6dbc88f478c39debac299a9dd8d
parentbd62fa5e1067bd5a3c8421ae3de0021a67223e22
greybus: arche-apb: NULL is a valid regulator

Since NULL could in theory be a valid regulator we ought to check for
IS_ERR() rather than for NULL. In practice this is unlikely to be an
issue but it's better for neatness.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/arche-apb-ctrl.c