diff options
-rw-r--r-- | drivers/pinctrl/pinmux.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/pinctrl/pinmux.c b/drivers/pinctrl/pinmux.c index f4f8c7e4b1c8..3ffa9324ed82 100644 --- a/drivers/pinctrl/pinmux.c +++ b/drivers/pinctrl/pinmux.c | |||
@@ -978,9 +978,12 @@ int pinmux_hog_maps(struct pinctrl_dev *pctldev) | |||
978 | for (i = 0; i < pinmux_maps_num; i++) { | 978 | for (i = 0; i < pinmux_maps_num; i++) { |
979 | struct pinmux_map const *map = &pinmux_maps[i]; | 979 | struct pinmux_map const *map = &pinmux_maps[i]; |
980 | 980 | ||
981 | if (((map->ctrl_dev == dev) || | 981 | if (!map->hog_on_boot) |
982 | !strcmp(map->ctrl_dev_name, devname)) && | 982 | continue; |
983 | map->hog_on_boot) { | 983 | |
984 | if ((map->ctrl_dev == dev) || | ||
985 | (map->ctrl_dev_name && | ||
986 | !strcmp(map->ctrl_dev_name, devname))) { | ||
984 | /* OK time to hog! */ | 987 | /* OK time to hog! */ |
985 | ret = pinmux_hog_map(pctldev, map); | 988 | ret = pinmux_hog_map(pctldev, map); |
986 | if (ret) | 989 | if (ret) |