]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/rtc/rtc-tegra.c
drivers/rtc/rtc-tegra.c: properly initialize spinlock
[~shefty/rdma-dev.git] / drivers / rtc / rtc-tegra.c
index 2fc31aac3f4ecf477e5365d94fe47968d40ce6cd..75259fe38602af5952193d7a2a411e6eba661da9 100644 (file)
@@ -343,7 +343,7 @@ static int __devinit tegra_rtc_probe(struct platform_device *pdev)
 
        /* set context info. */
        info->pdev = pdev;
-       info->tegra_rtc_lock = __SPIN_LOCK_UNLOCKED(info->tegra_rtc_lock);
+       spin_lock_init(&info->tegra_rtc_lock);
 
        platform_set_drvdata(pdev, info);