X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=target%2Flinux%2Fxburst%2Ffiles-2.6.32%2Fdrivers%2Frtc%2Frtc-jz4740.c;h=03479a73f7f7ef19a0823a0b31c0c2c435dd7188;hb=cd02ed524bc4071056dbe2e2817e7a6586bcb979;hp=2039eb3de819881e0e4230eed515248c9b549968;hpb=40558623d264e4f4989dce19ac6679ab39cc4429;p=openwrt-10.03%2F.git diff --git a/target/linux/xburst/files-2.6.32/drivers/rtc/rtc-jz4740.c b/target/linux/xburst/files-2.6.32/drivers/rtc/rtc-jz4740.c index 2039eb3de..03479a73f 100644 --- a/target/linux/xburst/files-2.6.32/drivers/rtc/rtc-jz4740.c +++ b/target/linux/xburst/files-2.6.32/drivers/rtc/rtc-jz4740.c @@ -260,7 +260,7 @@ static int __devinit jz4740_rtc_probe(struct platform_device *pdev) } ret = request_irq(rtc->irq, jz4740_rtc_irq, 0, - pdev->name, rtc); + pdev->name, rtc); if (ret) { dev_err(&pdev->dev, "Failed to request rtc irq: %d\n", ret); @@ -292,6 +292,8 @@ static int __devexit jz4740_rtc_remove(struct platform_device *pdev) { struct jz4740_rtc *rtc = platform_get_drvdata(pdev); + free_irq(rtc->irq, rtc); + rtc_device_unregister(rtc->rtc); iounmap(rtc->base); @@ -329,4 +331,3 @@ MODULE_AUTHOR("Lars-Peter Clausen "); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("RTC driver for the JZ4720/JZ4740 SoC\n"); MODULE_ALIAS("platform:jz4740-rtc"); -MODULE_ALIAS("platform:jz4720-rtc");