[PATCH v13 6/6] clk: meson: a1: add Amlogic A1 Peripherals clock controller driver
Martin Blumenstingl
martin.blumenstingl at googlemail.com
Sun Apr 23 14:30:38 PDT 2023
On Wed, Apr 5, 2023 at 9:59 PM Dmitry Rokosov <ddrokosov at sberdevices.ru> wrote:
[...]
> +static const struct of_device_id a1_periphs_clkc_match_table[] = {
> + { .compatible = "amlogic,a1-clkc", },
> + {},
nit-pick: please remove the comma after the sentinel
> +MODULE_DEVICE_TABLE(of, a1_periphs_clkc_match_table);
> +
> +static struct platform_driver a1_periphs_clkc_driver = {
> + .probe = meson_a1_periphs_probe,
> + .driver = {
> + .name = "a1-clkc",
> + .of_match_table = of_match_ptr(a1_periphs_clkc_match_table),
I wonder if we should drop of_match_ptr() here as no other meson clock
driver uses it.
Also there's commits like 00cb754ac622 ("clk: imx8mq: drop
of_match_ptr from of_device_id table") which explicitly remove it from
other drivers.
Apart form these two this patch looks great to me.
Best regards,
Martin
More information about the linux-amlogic
mailing list