Skip to content
Commit ee522bcf authored by Yang Yingliang's avatar Yang Yingliang Committed by Pavel Machek
Browse files

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent 6efb943b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment