rtc: rtc-max6902 - set driver data in max6902_probe()
authorAxel Lin <axel.lin@gmail.com>
Thu, 13 Jan 2011 01:00:09 +0000 (17:00 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Jan 2011 16:03:12 +0000 (08:03 -0800)
commit5f003feba2a8761d2ee7b367df5a0fe6b729dc8f
tree047b9d1785b944039454cc0d805bd6f6940787a6
parent81d350e013a9a4b743281e16d5fd29cd8955a746
rtc: rtc-max6902 - set driver data in max6902_probe()

Current implementation does not set driver data in max6902_probe(), thus
calling platform_get_drvdata(spi) in max6902_remove() returns NULL.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-max6902.c