Skip to content

Commit

Permalink
mfd: rsmu_spi: Remove redundant of_match_ptr()
Browse files Browse the repository at this point in the history
The driver depends on CONFIG_OF, so it is not necessary to use
of_match_ptr() here. We remove of_match_ptr() here.

Signed-off-by: Zhu Wang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lee Jones <[email protected]>
  • Loading branch information
PeterZhu789 authored and lag-linaro committed Aug 22, 2023
1 parent 23fa942 commit 6192a8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/rsmu_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ MODULE_DEVICE_TABLE(of, rsmu_spi_of_match);
static struct spi_driver rsmu_spi_driver = {
.driver = {
.name = "rsmu-spi",
.of_match_table = of_match_ptr(rsmu_spi_of_match),
.of_match_table = rsmu_spi_of_match,
},
.probe = rsmu_spi_probe,
.remove = rsmu_spi_remove,
Expand Down

0 comments on commit 6192a8a

Please sign in to comment.