]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rtc: rx8010sj: fix DM initialization
authorRobert Beckett <bob.beckett@collabora.com>
Mon, 28 Oct 2019 18:49:15 +0000 (18:49 +0000)
committerStefano Babic <sbabic@denx.de>
Fri, 27 Dec 2019 13:33:11 +0000 (14:33 +0100)
pass the udevice by reference instead of double ref

Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
drivers/rtc/rx8010sj.c

index 81560e16cef160bf42b4ddd110418fb1b0699b32..2876692a37881dd5fe565b4cc8035bdabb6d34fe 100644 (file)
@@ -349,7 +349,7 @@ void rtc_init(void)
 
 static int rx8010sj_probe(struct udevice *dev)
 {
-       rx8010sj_rtc_init(&dev);
+       rx8010sj_rtc_init(dev);
 
        return 0;
 }