aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pinctrl/core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c
index b6e3c35c028e..552d8c115c4f 100644
--- a/drivers/pinctrl/core.c
+++ b/drivers/pinctrl/core.c
@@ -801,8 +801,7 @@ static int pinctrl_hog_maps(struct pinctrl_dev *pctldev)
801 801
802 mutex_lock(&pinctrl_maps_mutex); 802 mutex_lock(&pinctrl_maps_mutex);
803 for_each_maps(maps_node, i, map) { 803 for_each_maps(maps_node, i, map) {
804 if (map->ctrl_dev_name && 804 if (!strcmp(map->ctrl_dev_name, devname) &&
805 !strcmp(map->ctrl_dev_name, devname) &&
806 !strcmp(map->dev_name, devname)) { 805 !strcmp(map->dev_name, devname)) {
807 /* OK time to hog! */ 806 /* OK time to hog! */
808 ret = pinctrl_hog_map(pctldev, map); 807 ret = pinctrl_hog_map(pctldev, map);