Skip to content

Commit

Permalink
drivers/rtc/rtc-tegra.c: properly initialize spinlock
Browse files Browse the repository at this point in the history
Using __SPIN_LOCK_UNLOCKED for a dynamically allocated lock is wrong and
breaks the build with PREEMPT_RT_FULL.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Andrew Chew <achew@nvidia.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Uwe Kleine-König authored and Linus Torvalds committed Jul 26, 2011
1 parent 8f6b0dd commit e57ee01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e57ee01

Please sign in to comment.