Skip to content

Commit b185791

Browse files
Bartosz GolaszewskiBartosz Golaszewski
authored andcommitted
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>
1 parent 8f0b4cc commit b185791

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/power/sequencing/pwrseq-qcom-wcn.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <linux/module.h>
1313
#include <linux/of.h>
1414
#include <linux/platform_device.h>
15+
#include <linux/property.h>
1516
#include <linux/regulator/consumer.h>
1617
#include <linux/pwrseq/provider.h>
1718
#include <linux/string.h>
@@ -373,7 +374,7 @@ static int pwrseq_qcom_wcn_probe(struct platform_device *pdev)
373374

374375
ctx->of_node = dev->of_node;
375376

376-
ctx->pdata = of_device_get_match_data(dev);
377+
ctx->pdata = device_get_match_data(dev);
377378
if (!ctx->pdata)
378379
return dev_err_probe(dev, -ENODEV,
379380
"Failed to obtain platform data\n");

0 commit comments

Comments
 (0)