diff options
| author | Axel Lin <[email protected]> | 2016-06-30 08:13:34 +0800 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2016-07-01 11:53:56 +0200 |
| commit | 410fe39c6d2116aa5584083cbcbb7b3796e09f5d (patch) | |
| tree | e47902ea8890c5c704e2d7239b94d4a680c69bec /scripts/gdb/linux | |
| parent | 20f12f2c4819a36de92ec6be382d0636d3485c6b (diff) | |
ASoC: cs35l33: Fix testing return value of devm_gpiod_get_optional
devm_gpiod_get_optional() returns NULL when the gpio is not assigned.
So the if (PTR_ERR(cs35l33->reset_gpio) == -ENOENT) test is always false.
Signed-off-by: Axel Lin <[email protected]>
Acked-by: Paul Handrigan <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions