summaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2017-02-11 02:30:29 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-02-13 01:55:08 +0300
commitf7bf6f58675a76c08e6eee7fa5c264884eb5c599 (patch)
treef388e4c8c4799286b85f471326422237ed1a0e7f /drivers/fpga/fpga-mgr.c
parent449aa83e69ff10d77fe088eadacafe1e97937c14 (diff)
downloadlinux-f7bf6f58675a76c08e6eee7fa5c264884eb5c599.tar.xz
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 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions