Skip to content

Commit d3d1c5e

Browse files
Marek Vasutbebarino
authored andcommitted
clk: vc5: Use device_get_match_data() instead of of_device_get_match_data()
Use device_get_match_data() which, unlike of_device_get_match_data(), is compatible with other firmware interfaces than just OF. Reviewed-by: Luca Ceresoli <[email protected]> Signed-off-by: Marek Vasut <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent ac9a786 commit d3d1c5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/clk/clk-versaclock5.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <linux/module.h>
2121
#include <linux/of.h>
2222
#include <linux/of_platform.h>
23+
#include <linux/property.h>
2324
#include <linux/regmap.h>
2425
#include <linux/slab.h>
2526

@@ -953,7 +954,7 @@ static int vc5_probe(struct i2c_client *client)
953954

954955
i2c_set_clientdata(client, vc5);
955956
vc5->client = client;
956-
vc5->chip_info = of_device_get_match_data(&client->dev);
957+
vc5->chip_info = device_get_match_data(&client->dev);
957958

958959
vc5->pin_xin = devm_clk_get(&client->dev, "xin");
959960
if (PTR_ERR(vc5->pin_xin) == -EPROBE_DEFER)

0 commit comments

Comments
 (0)