i2c: tegra: use of_match_ptr() for match_table initialization
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 10 Jul 2012 11:20:42 +0000 (16:20 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 30 Jul 2012 10:34:17 +0000 (15:34 +0530)
commita45c245bd0e16a1480b2da2f4cee5766d9ed8d04
treebf09a94ffdb7ee52b7ba7cc23dc890aecdaaf10d
parentd388459af73eb08e4a7085265ba2f85a3a5eca91
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>

Cherry-picked from mainline
02d8bf8dc6b09cb810599c64d47da3bdf4f85882
Fixed conflicts.

Change-Id: I71994c49813396ad6b3dfa3fd616d9585203adba
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/116464
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bandi Krishna Chaitanya <bandik@nvidia.com>
drivers/i2c/busses/i2c-tegra.c