aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpio/gpio-xlp.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/gpio/gpio-xlp.c b/drivers/gpio/gpio-xlp.c
index e74bd43a6974..8e4275eaa7d7 100644
--- a/drivers/gpio/gpio-xlp.c
+++ b/drivers/gpio/gpio-xlp.c
@@ -322,14 +322,7 @@ static int xlp_gpio_probe(struct platform_device *pdev)
322 return irq; 322 return irq;
323 323
324 if (pdev->dev.of_node) { 324 if (pdev->dev.of_node) {
325 const struct of_device_id *of_id; 325 soc_type = (uintptr_t)of_device_get_match_data(&pdev->dev);
326
327 of_id = of_match_device(xlp_gpio_of_ids, &pdev->dev);
328 if (!of_id) {
329 dev_err(&pdev->dev, "Unable to match OF ID\n");
330 return -ENODEV;
331 }
332 soc_type = (uintptr_t) of_id->data;
333 } else { 326 } else {
334 const struct acpi_device_id *acpi_id; 327 const struct acpi_device_id *acpi_id;
335 328