diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2021-04-06 15:11:59 +0200 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2021-05-10 11:58:54 +0200 |
commit | ee522bcf026ec82ada793979c3a906274430595a (patch) | |
tree | c2bd547f01c85e754494e2aedc77ae2416ba3683 /drivers/leds/leds-lm36274.c | |
parent | Linux 5.13-rc1 (diff) | |
download | linux-ee522bcf026ec82ada793979c3a906274430595a.tar.xz linux-ee522bcf026ec82ada793979c3a906274430595a.zip |
leds: tlc591xx: fix return value check in tlc591xx_probe()
After device_get_match_data(), tlc591xx is not checked, add
check for it and also check np after dev_of_node.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'drivers/leds/leds-lm36274.c')
0 files changed, 0 insertions, 0 deletions