]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-tegra.c: fix build warning
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 26 Mar 2013 23:25:32 +0000 (10:25 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:12:44 +0000 (17:12 +1100)
commitf683fa5f7437c85fdf730383fe53d692ce152dfe
tree017e1fe0a386d022f3dd0641f75181a02f410ef0
parentaaae2974b2091549856a3ef183d4b31666ab91bf
drivers/rtc/rtc-tegra.c: fix build warning

Fix the below build warning:

drivers/rtc/rtc-tegra.c: In function 'tegra_rtc_probe':
drivers/rtc/rtc-tegra.c:353:33: warning: passing argument 1 of 'devm_rtc_device_register' from incompatible pointer type [enabled by default]
include/linux/rtc.h:136:27: note: expected 'struct device *' but argument is of type 'const char *'
drivers/rtc/rtc-tegra.c:353:33: warning: passing argument 2 of 'devm_rtc_device_register' from incompatible pointer type [enabled by default]
include/linux/rtc.h:136:27: note: expected 'const char *' but argument is of type 'struct device *'

This warning was introduced with patch
commit 8a96d445e921b0d881421767fb6f7c5b6fb91b3a
drivers/rtc/rtc-tegra.c: use managed rtc_device_register()

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-tegra.c