summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/intel-lpss-pci.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2023-11-24 20:31:24 +0100
committerLee Jones <lee@kernel.org>2023-12-07 14:50:29 +0100
commit3b6dba220e67eda42f1263403fbbba64992da3ae (patch)
tree985fc9af9d6baee6f26ec9155ace9f8d5a85f573 /drivers/mfd/intel-lpss-pci.c
parentdt-bindings: mfd: ti,am3359-tscadc: Allow dmas property to be optional (diff)
downloadlinux-3b6dba220e67eda42f1263403fbbba64992da3ae.tar.xz
linux-3b6dba220e67eda42f1263403fbbba64992da3ae.zip
mfd: intel-lpss: Revert "Add missing check for platform_get_resource"
This reverts commit d918e0d5824495a75d00b879118b098fcab36fdb. The commit in question does not fix anything and only introduces a duplication in the code. The main intel_lpss_probe() performs all necessary checks. While at it and in order of avoiding similar patches to come, add a comment. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20231124200258.3682979-2-andriy.shevchenko@linux.intel.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/mfd/intel-lpss-pci.c')
-rw-r--r--drivers/mfd/intel-lpss-pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/intel-lpss-pci.c b/drivers/mfd/intel-lpss-pci.c
index cf56cd3a40ee..709b0fb4419d 100644
--- a/drivers/mfd/intel-lpss-pci.c
+++ b/drivers/mfd/intel-lpss-pci.c
@@ -46,6 +46,7 @@ static int intel_lpss_pci_probe(struct pci_dev *pdev,
if (!info)
return -ENOMEM;
+ /* No need to check mem and irq here as intel_lpss_probe() does it for us */
info->mem = pci_resource_n(pdev, 0);
info->irq = pci_irq_vector(pdev, 0);