mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
regulator: fan53555: set vsel_gpio null if invalid
Change-Id: Iafeff8c75d5627c71ce28eb7850e759660846f2b Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
This commit is contained in:
parent
931b1baa78
commit
948db6e952
|
|
@ -611,6 +611,7 @@ static struct fan53555_platform_data *fan53555_parse_dt(struct device *dev,
|
|||
if (IS_ERR(pdata->vsel_gpio)) {
|
||||
ret = PTR_ERR(pdata->vsel_gpio);
|
||||
dev_err(dev, "failed to get vesl gpio (%d)\n", ret);
|
||||
pdata->vsel_gpio = NULL;
|
||||
}
|
||||
|
||||
return pdata;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user