Skip to content

Commit 893911e

Browse files
Marek Vasutbebarino
authored andcommitted
clk: vc7: 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. 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 d3d1c5e commit 893911e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/clk/clk-versaclock7.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <linux/module.h>
1616
#include <linux/of.h>
1717
#include <linux/of_platform.h>
18+
#include <linux/property.h>
1819
#include <linux/regmap.h>
1920
#include <linux/swab.h>
2021

@@ -1108,7 +1109,7 @@ static int vc7_probe(struct i2c_client *client)
11081109

11091110
i2c_set_clientdata(client, vc7);
11101111
vc7->client = client;
1111-
vc7->chip_info = of_device_get_match_data(&client->dev);
1112+
vc7->chip_info = device_get_match_data(&client->dev);
11121113

11131114
vc7->pin_xin = devm_clk_get(&client->dev, "xin");
11141115
if (PTR_ERR(vc7->pin_xin) == -EPROBE_DEFER) {

0 commit comments

Comments
 (0)