From patchwork Sat Jun 11 12:07:25 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: rtc: ep93xx: Fix compiler warning in ep93xx_rtc_probe Date: Sat, 11 Jun 2011 02:07:25 -0000 From: =?utf-8?q?Petr_=C5=A0tetiar?= X-Patchwork-Id: 100008 Message-Id: <1307794045-27845-1-git-send-email-ynezz@true.cz> To: rtc-linux@googlegroups.com Cc: =?UTF-8?q?Petr=20=C5=A0tetiar?= , Alessandro Zummo Commit 92d921c5def introduced following compiler warning: drivers/rtc/rtc-ep93xx.c: In function 'ep93xx_rtc_probe': include/linux/platform_device.h:145:17: warning: 'rtc' may be used uninitialized in this function drivers/rtc/rtc-ep93xx.c:133:21: note: 'rtc' was declared here Cc: Alessandro Zummo Cc: rtc-linux@googlegroups.com Signed-off-by: Petr Štetiar --- drivers/rtc/rtc-ep93xx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/rtc/rtc-ep93xx.c b/drivers/rtc/rtc-ep93xx.c index 335551d..50bd69f 100644 --- a/drivers/rtc/rtc-ep93xx.c +++ b/drivers/rtc/rtc-ep93xx.c @@ -130,7 +130,7 @@ static int __init ep93xx_rtc_probe(struct platform_device *pdev) { struct ep93xx_rtc *ep93xx_rtc; struct resource *res; - struct rtc_device *rtc; + struct rtc_device *rtc = NULL; int err; ep93xx_rtc = devm_kzalloc(&pdev->dev, sizeof(*ep93xx_rtc), GFP_KERNEL);