hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/mfd/rk806-spi.c
....@@ -12,12 +12,6 @@
1212 #include <linux/regmap.h>
1313 #include <linux/spi/spi.h>
1414
15
-static const struct of_device_id rk806_spi_of_match_table[] = {
16
- { .compatible = "rockchip,rk806", },
17
- { }
18
-};
19
-MODULE_DEVICE_TABLE(of, rk806_spi_of_match_table);
20
-
2115 static int rk806_spi_write(struct spi_device *spi,
2216 char addr,
2317 const char *data,
....@@ -101,7 +95,7 @@
10195 rk806->regmap = devm_regmap_init(&spi->dev,
10296 &rk806_regmap_bus_spi,
10397 &spi->dev,
104
- &rk806_regmap_config_spi);
98
+ &rk806_regmap_config);
10599 if (IS_ERR(rk806->regmap)) {
106100 dev_err(rk806->dev, "Failed to initialize register map\n");
107101 return PTR_ERR(rk806->regmap);
....@@ -127,7 +121,7 @@
127121 .driver = {
128122 .name = "rk806",
129123 .owner = THIS_MODULE,
130
- .of_match_table = rk806_spi_of_match_table,
124
+ .of_match_table = of_match_ptr(rk806_of_match),
131125 },
132126 .probe = rk806_spi_probe,
133127 .remove = rk806_spi_remove,