Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Bartosz Golaszewski and committed by
Bartosz Golaszewski
b1857911 8f0b4cce

+2 -1
+2 -1
drivers/power/sequencing/pwrseq-qcom-wcn.c
··· 12 12 #include <linux/module.h> 13 13 #include <linux/of.h> 14 14 #include <linux/platform_device.h> 15 + #include <linux/property.h> 15 16 #include <linux/regulator/consumer.h> 16 17 #include <linux/pwrseq/provider.h> 17 18 #include <linux/string.h> ··· 374 373 375 374 ctx->of_node = dev->of_node; 376 375 377 - ctx->pdata = of_device_get_match_data(dev); 376 + ctx->pdata = device_get_match_data(dev); 378 377 if (!ctx->pdata) 379 378 return dev_err_probe(dev, -ENODEV, 380 379 "Failed to obtain platform data\n");