Skip to content

Commit f2037a3

Browse files
ukleinekUwe Kleine-König
authored andcommitted
pwm: clps711x: Drop of_match_ptr() usage for .of_match_table
The pwm-clps711x driver depends on ARCH_CLPS711X || COMPILE_TEST. With the former being an ARCH_MULTI_V4T platform, there is always OF=y when ARCH_CLPS711X=y, so in practise clps711x_pwm_dt_ids[] is always used. (And in the case COMPILE_TEST=y + OF=n this only increases the driver size a bit but still compiles.) So drop the usage of of_match_ptr(). Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20250214163442.192006-2-u.kleine-koenig@baylibre.com Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
1 parent b2693ed commit f2037a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pwm/pwm-clps711x.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static int clps711x_pwm_probe(struct platform_device *pdev)
9898
return devm_pwmchip_add(&pdev->dev, chip);
9999
}
100100

101-
static const struct of_device_id __maybe_unused clps711x_pwm_dt_ids[] = {
101+
static const struct of_device_id clps711x_pwm_dt_ids[] = {
102102
{ .compatible = "cirrus,ep7209-pwm", },
103103
{ }
104104
};
@@ -107,7 +107,7 @@ MODULE_DEVICE_TABLE(of, clps711x_pwm_dt_ids);
107107
static struct platform_driver clps711x_pwm_driver = {
108108
.driver = {
109109
.name = "clps711x-pwm",
110-
.of_match_table = of_match_ptr(clps711x_pwm_dt_ids),
110+
.of_match_table = clps711x_pwm_dt_ids,
111111
},
112112
.probe = clps711x_pwm_probe,
113113
};

0 commit comments

Comments
 (0)