diff options
Diffstat (limited to 'drivers/irqchip/irq-renesas-intc-irqpin.c')
-rw-r--r-- | drivers/irqchip/irq-renesas-intc-irqpin.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/irqchip/irq-renesas-intc-irqpin.c b/drivers/irqchip/irq-renesas-intc-irqpin.c index 713177d97c7a..06f29cf5018a 100644 --- a/drivers/irqchip/irq-renesas-intc-irqpin.c +++ b/drivers/irqchip/irq-renesas-intc-irqpin.c | |||
@@ -389,9 +389,8 @@ MODULE_DEVICE_TABLE(of, intc_irqpin_dt_ids); | |||
389 | 389 | ||
390 | static int intc_irqpin_probe(struct platform_device *pdev) | 390 | static int intc_irqpin_probe(struct platform_device *pdev) |
391 | { | 391 | { |
392 | const struct intc_irqpin_config *config = NULL; | 392 | const struct intc_irqpin_config *config; |
393 | struct device *dev = &pdev->dev; | 393 | struct device *dev = &pdev->dev; |
394 | const struct of_device_id *of_id; | ||
395 | struct intc_irqpin_priv *p; | 394 | struct intc_irqpin_priv *p; |
396 | struct intc_irqpin_iomem *i; | 395 | struct intc_irqpin_iomem *i; |
397 | struct resource *io[INTC_IRQPIN_REG_NR]; | 396 | struct resource *io[INTC_IRQPIN_REG_NR]; |
@@ -422,11 +421,9 @@ static int intc_irqpin_probe(struct platform_device *pdev) | |||
422 | p->pdev = pdev; | 421 | p->pdev = pdev; |
423 | platform_set_drvdata(pdev, p); | 422 | platform_set_drvdata(pdev, p); |
424 | 423 | ||
425 | of_id = of_match_device(intc_irqpin_dt_ids, dev); | 424 | config = of_device_get_match_data(dev); |
426 | if (of_id && of_id->data) { | 425 | if (config) |
427 | config = of_id->data; | ||
428 | p->needs_clk = config->needs_clk; | 426 | p->needs_clk = config->needs_clk; |
429 | } | ||
430 | 427 | ||
431 | p->clk = devm_clk_get(dev, NULL); | 428 | p->clk = devm_clk_get(dev, NULL); |
432 | if (IS_ERR(p->clk)) { | 429 | if (IS_ERR(p->clk)) { |