summaryrefslogtreecommitdiff
path: root/Kbuild
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2017-02-10 15:30:29 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-02-12 14:55:08 -0800
commitf7bf6f58675a76c08e6eee7fa5c264884eb5c599 (patch)
treef388e4c8c4799286b85f471326422237ed1a0e7f /Kbuild
parent449aa83e69ff10d77fe088eadacafe1e97937c14 (diff)
Input: tsc2004/5 - fix regulator handling
In case of an optional regulator missing, regulator core will return ERR_PTR(-ENOENT) and not NULL, so the check for missing regulator is incorrect. Also, the regulator is not optional, it may simply be missing from platform description, so let's use devm_regulator_get() and rely on regulator core to give us dummy supply when real one is not available. Fixes: d257f2980feb ("Input: tsc2005 - convert to gpiod") Acked-By: Sebastian Reichel <sre@kernel.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions