mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user