soc: ti: knav_qmss_queue: Use device_get_match_data()
PATCH 1/1 soc: ti: knav_qmss_queue: Use device_get_match_data()
Use preferred device_get_match_data() instead of of_match_device() to get the driver match data. With this, adjust the includes to explicitly include the correct headers.
--- drivers/soc/ti/knav_qmss_queue.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/soc/ti/knav_qmss_queue.c +4 -4
@@ -14,10 +14,12 @@#include <linux/interrupt.h> #include <linux/io.h> #include <linux/module.h> +#include <linux/of.h> #include <linux/of_address.h> -#include <linux/of_device.h> #include <linux/of_irq.h> +#include <linux/platform_device.h> #include <linux/pm_runtime.h> +#include <linux/property.h> #include <linux/slab.h> #include <linux/soc/ti/knav_qmss.h>
@@ -1754,7 +1756,6 @@ static int knav_queue_probe(struct platform_device *pdev) {struct device_node *node = pdev->dev.of_node;struct device_node *qmgrs, *queue_pools, *regions, *pdsps; -const struct of_device_id *match;struct device *dev = &pdev->dev;u32 temp[2 ];int ret;
@@ -1770,8 +1771,7 @@ static int knav_queue_probe(struct platform_device *pdev)return -ENOMEM ; } - match =of_match_device (of_match_ptr (keystone_qmss_of_match), dev); -if (match && match->data) +if (device_get_match_data (dev)) kdev->version =QMSS_66AK2G ;platform_set_drvdata (pdev, kdev);
Signature · 1 line
2.42.0
Hi Rob Herring,
Quoted 5 lines · Rob Herring
Use preferred
device_get_match_data()instead ofof_match_device()to get the driver match data. With this, adjust the includes to explicitly include the correct headers.
I have applied the following to branch ti-drivers-soc-next on [1]. Thank you!
[1/1] soc: ti: knav_qmss_queue: Use device_get_match_data()
commit: 50c01a942b287451ed7bec290ac09e07b91c6253
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent up the chain during the next merge window (or sooner if it is a relevant bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
Signature · 9 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel