Message ID | 1473087671-8866-1-git-send-email-axel.lin@ingics.com |
---|---|
State | Rejected |
Headers | show |
Hi, This is already solved by: http://patchwork.ozlabs.org/patch/664582/ On 05/09/2016 at 23:01:11 +0800, Axel Lin wrote : > Signed-off-by: Axel Lin <axel.lin@ingics.com> > --- > drivers/rtc/rtc-asm9260.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/rtc/rtc-asm9260.c b/drivers/rtc/rtc-asm9260.c > index 5219916..72a036f 100644 > --- a/drivers/rtc/rtc-asm9260.c > +++ b/drivers/rtc/rtc-asm9260.c > @@ -269,6 +269,7 @@ static int asm9260_rtc_probe(struct platform_device *pdev) > > priv->dev = &pdev->dev; > platform_set_drvdata(pdev, priv); > + spin_lock_init(&priv->lock); > > irq_alarm = platform_get_irq(pdev, 0); > if (irq_alarm < 0) { > -- > 2.7.4 >
diff --git a/drivers/rtc/rtc-asm9260.c b/drivers/rtc/rtc-asm9260.c index 5219916..72a036f 100644 --- a/drivers/rtc/rtc-asm9260.c +++ b/drivers/rtc/rtc-asm9260.c @@ -269,6 +269,7 @@ static int asm9260_rtc_probe(struct platform_device *pdev) priv->dev = &pdev->dev; platform_set_drvdata(pdev, priv); + spin_lock_init(&priv->lock); irq_alarm = platform_get_irq(pdev, 0); if (irq_alarm < 0) {
Signed-off-by: Axel Lin <axel.lin@ingics.com> --- drivers/rtc/rtc-asm9260.c | 1 + 1 file changed, 1 insertion(+)