Skip to content

Commit bf68fdf

Browse files
committed
clk: lmk04832: Use of match table
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 <[email protected]> Cc: Liam Beguin <[email protected]> Fixes: 3bc61cf ("clk: add support for the lmk04832") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 97a1c5c commit bf68fdf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/clk/clk-lmk04832.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,18 +1573,20 @@ static int lmk04832_remove(struct spi_device *spi)
15731573
}
15741574
static const struct spi_device_id lmk04832_id[] = {
15751575
{ "lmk04832", LMK04832 },
1576-
{},
1576+
{}
15771577
};
15781578
MODULE_DEVICE_TABLE(spi, lmk04832_id);
15791579

15801580
static const struct of_device_id lmk04832_of_id[] = {
15811581
{ .compatible = "ti,lmk04832" },
1582-
{},
1582+
{}
15831583
};
1584+
MODULE_DEVICE_TABLE(of, lmk04832_of_id);
15841585

15851586
static struct spi_driver lmk04832_driver = {
15861587
.driver = {
15871588
.name = "lmk04832",
1589+
.of_match_table = lmk04832_of_id,
15881590
},
15891591
.probe = lmk04832_probe,
15901592
.remove = lmk04832_remove,

0 commit comments

Comments
 (0)