]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
reset: amlogic: use generic data matching function
authorJerome Brunet <jbrunet@baylibre.com>
Tue, 10 Sep 2024 16:32:44 +0000 (18:32 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 1 Oct 2024 08:40:32 +0000 (10:40 +0200)
There is no need to use the DT specific function to get
matching data, use the generic one instead

Suggested-by: Stephen Boyd <sboyd@kernel.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20240910-meson-rst-aux-v5-2-60be62635d3e@baylibre.com
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/reset-meson.c

index 9dd38cc209e271849c1f9427d5afdf5cd14481c5..848c2d88503ef456bc0e07aa7d7a626e0bf04004 100644 (file)
@@ -134,7 +134,7 @@ static int meson_reset_probe(struct platform_device *pdev)
        if (IS_ERR(base))
                return PTR_ERR(base);
 
-       data->param = of_device_get_match_data(dev);
+       data->param = device_get_match_data(dev);
        if (!data->param)
                return -ENODEV;