Commit 02d8bf8dc6b09cb810599c64d47da3bdf4f85882
Committed by
Wolfram Sang
1 parent
9dce4bcaaa
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
i2c: tegra: use of_match_ptr() for match_table initialization
In place of defining match_table for non-DT based as NULL, use of_match_ptr() for initialzing the of_match_table. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Showing 1 changed file with 1 additions and 3 deletions Side-by-side Diff
drivers/i2c/busses/i2c-tegra.c
... | ... | @@ -754,8 +754,6 @@ |
754 | 754 | {}, |
755 | 755 | }; |
756 | 756 | MODULE_DEVICE_TABLE(of, tegra_i2c_of_match); |
757 | -#else | |
758 | -#define tegra_i2c_of_match NULL | |
759 | 757 | #endif |
760 | 758 | |
761 | 759 | static struct platform_driver tegra_i2c_driver = { |
... | ... | @@ -768,7 +766,7 @@ |
768 | 766 | .driver = { |
769 | 767 | .name = "tegra-i2c", |
770 | 768 | .owner = THIS_MODULE, |
771 | - .of_match_table = tegra_i2c_of_match, | |
769 | + .of_match_table = of_match_ptr(tegra_i2c_of_match), | |
772 | 770 | }, |
773 | 771 | }; |
774 | 772 |