projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97a1c5c
)
clk: lmk04832: Use of match table
author
Stephen Boyd
<sboyd@kernel.org>
Tue, 29 Jun 2021 06:07:51 +0000
(23:07 -0700)
committer
Stephen Boyd
<sboyd@kernel.org>
Tue, 29 Jun 2021 06:08:52 +0000
(23:08 -0700)
Presumably we want to use this match table so add a module device table
and set the driver match pointer appropriately.
Reported-by: kernel test robot <lkp@intel.com>
Cc: Liam Beguin <lvb@xiphos.com>
Fixes: 3bc61cfd6f4a ("clk: add support for the lmk04832")
Link:
https://lore.kernel.org/r/20210629060751.3119453-2-sboyd@kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk-lmk04832.c
patch
|
blob
|
history
diff --git
a/drivers/clk/clk-lmk04832.c
b/drivers/clk/clk-lmk04832.c
index 0cd76e626c3dff716926e2906b3343767fe09b88..c1095e733220bd855c68a2d5cfa07b6da2c1c995 100644
(file)
--- a/
drivers/clk/clk-lmk04832.c
+++ b/
drivers/clk/clk-lmk04832.c
@@
-1573,18
+1573,20
@@
static int lmk04832_remove(struct spi_device *spi)
}
static const struct spi_device_id lmk04832_id[] = {
{ "lmk04832", LMK04832 },
- {}
,
+ {}
};
MODULE_DEVICE_TABLE(spi, lmk04832_id);
static const struct of_device_id lmk04832_of_id[] = {
{ .compatible = "ti,lmk04832" },
- {}
,
+ {}
};
+MODULE_DEVICE_TABLE(of, lmk04832_of_id);
static struct spi_driver lmk04832_driver = {
.driver = {
.name = "lmk04832",
+ .of_match_table = lmk04832_of_id,
},
.probe = lmk04832_probe,
.remove = lmk04832_remove,