diff options
| author | Bartosz Golaszewski <bartosz.golaszewski@linaro.org> | 2025-11-25 14:47:00 +0100 |
|---|---|---|
| committer | Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> | 2026-01-07 09:23:15 +0100 |
| commit | b1857911d845136cdf627501070dd1b2dc7d0bbe (patch) | |
| tree | adeed681291b5137680885cb0e9606081f19d487 /drivers | |
| parent | 8f0b4cce4481fb22653697cced8d0d04027cb1e8 (diff) | |
power: sequencing: qcom-wcn: use device_get_match_data()
Use the generic fwnode interface for retrieving device match data
instead of the OF-specific one.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20251125134700.29135-1-brgl@bgdev.pl
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/power/sequencing/pwrseq-qcom-wcn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/power/sequencing/pwrseq-qcom-wcn.c b/drivers/power/sequencing/pwrseq-qcom-wcn.c index 663d9a537065..823f68ffebd1 100644 --- a/drivers/power/sequencing/pwrseq-qcom-wcn.c +++ b/drivers/power/sequencing/pwrseq-qcom-wcn.c @@ -12,6 +12,7 @@ #include <linux/module.h> #include <linux/of.h> #include <linux/platform_device.h> +#include <linux/property.h> #include <linux/regulator/consumer.h> #include <linux/pwrseq/provider.h> #include <linux/string.h> @@ -373,7 +374,7 @@ static int pwrseq_qcom_wcn_probe(struct platform_device *pdev) ctx->of_node = dev->of_node; - ctx->pdata = of_device_get_match_data(dev); + ctx->pdata = device_get_match_data(dev); if (!ctx->pdata) return dev_err_probe(dev, -ENODEV, "Failed to obtain platform data\n"); |
