We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e69052 commit 9f56539Copy full SHA for 9f56539
drivers/clk/rockchip/clk-rk3568.c
@@ -1703,14 +1703,12 @@ static const struct of_device_id clk_rk3568_match_table[] = {
1703
static int __init clk_rk3568_probe(struct platform_device *pdev)
1704
{
1705
struct device_node *np = pdev->dev.of_node;
1706
- const struct of_device_id *match;
1707
const struct clk_rk3568_inits *init_data;
1708
1709
- match = of_match_device(clk_rk3568_match_table, &pdev->dev);
1710
- if (!match || !match->data)
+ init_data = (struct clk_rk3568_inits *)of_device_get_match_data(&pdev->dev);
+ if (!init_data)
1711
return -EINVAL;
1712
1713
- init_data = match->data;
1714
if (init_data->inits)
1715
init_data->inits(np);
1716
0 commit comments