Re: [PATCH v3 2/2] clocksource/drivers/nxp-timer: Add the System Timer Module for the s32gx platforms
From: Krzysztof Kozlowski
Date: Wed Apr 02 2025 - 03:05:51 EST
On Wed, Apr 02, 2025 at 12:46:42AM +0200, Daniel Lezcano wrote:
> +
> +static const struct of_device_id nxp_stm_of_match[] = {
> + { .compatible = "nxp,s32g2-stm" },
> + { .compatible = "nxp,s32g3-stm" },
Drop, the entire point of me asking for compatibility is not to have
useless entries for the same devices.
> + { }
> +};
> +MODULE_DEVICE_TABLE(of, nxp_stm_of_match);
> +
> +static struct platform_driver nxp_stm_probe = {
> + .probe = nxp_stm_timer_probe,
> + .driver = {
> + .name = "nxp-stm",
> + .of_match_table = of_match_ptr(nxp_stm_of_match),
Drop of_match_ptr, you have here a warning.
> + },
> +};
> +module_platform_driver(nxp_stm_probe);
> +
> +MODULE_DESCRIPTION("NXP System Timer Module driver");
> +MODULE_LICENSE("GPL");
> --
> 2.43.0
>