summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-07-04 16:02:39 +0300
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-07-23 18:50:48 +0300
commitcfc1c34585492179e9e74a0b64d1be285646be67 (patch)
tree85055095c3eb015b58906c555048c05b160088c1 /drivers/pinctrl
parentfa01aff97637a961041ef7e6279cbd32514622b6 (diff)
downloadblackbird-op-linux-cfc1c34585492179e9e74a0b64d1be285646be67.tar.gz
blackbird-op-linux-cfc1c34585492179e9e74a0b64d1be285646be67.zip
pinctrl: intel: Drop double check for data in intel_pinctrl_probe_by_uid()
There is no need to duplicate the check which is done in the common intel_pinctrl_probe(). Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/intel/pinctrl-intel.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pinctrl/intel/pinctrl-intel.c b/drivers/pinctrl/intel/pinctrl-intel.c
index 5e460428a428..335b08d7d609 100644
--- a/drivers/pinctrl/intel/pinctrl-intel.c
+++ b/drivers/pinctrl/intel/pinctrl-intel.c
@@ -1418,8 +1418,6 @@ int intel_pinctrl_probe_by_uid(struct platform_device *pdev)
table = (const struct intel_pinctrl_soc_data **)id->driver_data;
data = table[pdev->id];
}
- if (!data)
- return -ENODEV;
return intel_pinctrl_probe(pdev, data);
}
OpenPOWER on IntegriCloud