aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2012-07-10 07:20:42 -0400
committerWolfram Sang <w.sang@pengutronix.de>2012-07-12 05:41:55 -0400
commit02d8bf8dc6b09cb810599c64d47da3bdf4f85882 (patch)
tree84b2ece6db8babc21702fa5d2e086ddc422edcc2 /drivers/i2c/busses
parent9dce4bcaaabce28f7b188e4fa4fda3ea74ae5a0d (diff)
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>
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r--drivers/i2c/busses/i2c-tegra.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c
index 60d777027ce..f00649c78b0 100644
--- a/drivers/i2c/busses/i2c-tegra.c
+++ b/drivers/i2c/busses/i2c-tegra.c
@@ -754,8 +754,6 @@ static const struct of_device_id tegra_i2c_of_match[] __devinitconst = {
754 {}, 754 {},
755}; 755};
756MODULE_DEVICE_TABLE(of, tegra_i2c_of_match); 756MODULE_DEVICE_TABLE(of, tegra_i2c_of_match);
757#else
758#define tegra_i2c_of_match NULL
759#endif 757#endif
760 758
761static struct platform_driver tegra_i2c_driver = { 759static struct platform_driver tegra_i2c_driver = {
@@ -768,7 +766,7 @@ static struct platform_driver tegra_i2c_driver = {
768 .driver = { 766 .driver = {
769 .name = "tegra-i2c", 767 .name = "tegra-i2c",
770 .owner = THIS_MODULE, 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