From patchwork Mon Sep 5 15:01:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 665877 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-vk0-x23d.google.com (mail-vk0-x23d.google.com [IPv6:2607:f8b0:400c:c05::23d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3sSXxs6Jcyz9s36 for ; Tue, 6 Sep 2016 01:01:52 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b=qVSzur/d; dkim-atps=neutral Received: by mail-vk0-x23d.google.com with SMTP id w124sf22343551vkd.0 for ; Mon, 05 Sep 2016 08:01:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=sender:mime-version:from:to:cc:subject:date:message-id :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=QjSUJGQfuaQgKvMBrTr3TYX/ViMwfQC9ZybtujDsZVY=; b=qVSzur/dVw6sqswKYzctQI8kacbRdHpkHF8d3wGqQbbpEtMZc2DGy6AvLSlyALiXXP cVv4Vbm1B4+PCv52B0e1oRzaGeCUxysyLRd5/LZzF8DpffVuWrfazM01nM7S/M02sUdv DZUjn06xFouFWpl5WVI+mhWEh/BGMHajKPbMAoiBhRAHriqnUVbIeJa9yIqQFY009hCX uk5RdxhqhHzzSSMcrM2cP26Bq/+n7YAPiUc+ZIrIQAmyFQ6AiUlWmJH2sbz01XkfNDVm 4B/XG5OJRqHNO7EG644rB5BPpG5TymhpmX71NHNC6hO1iGgKWc12EoBcpTMSne4t8n93 HJOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=QjSUJGQfuaQgKvMBrTr3TYX/ViMwfQC9ZybtujDsZVY=; b=W9PJmRHwmdNbgMnbUx8Wyauh8aVg6CCb55eo7QlxXPdZIkGXHBqFY6u1wV7ytnpnQp HuPy9hs66m79CgGBarLh7MQvam2W8ymjUEr09JIUBckBoG5GZrD8X55Qata3VA2ARRv5 hbO2CkQpt3OxpgAObVtQ+ZHLdQe7SpWG+DmwboB0IsbsdhvpV+XzGGNcgE6NaV0zcjZH zaWfUnMH1yfJoDnbt72HUsUsssV0RrMdKZAQxa/xYH4TTTsrKEyoS+AnfuTtPSFPDs9D H/kIp16emkZ9NkUZZgsWMnfaUcGk/PV008TgTqB8Qx/cZtgPUSG/UWvUgQmKDSgsKMhg EE+Q== Sender: rtc-linux@googlegroups.com X-Gm-Message-State: AE9vXwO2aIevRcGEKNa8Ek5RNlQlZ20QZSVucim8CezAj2xdLFtklWC4jOmmuLbLB9DHKg== X-Received: by 10.157.13.19 with SMTP id 19mr2752047oti.15.1473087710574; Mon, 05 Sep 2016 08:01:50 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.157.30.232 with SMTP id n95ls13581347otn.15.gmail; Mon, 05 Sep 2016 08:01:50 -0700 (PDT) X-Received: by 10.159.38.133 with SMTP id 5mr29944619uay.9.1473087710076; Mon, 05 Sep 2016 08:01:50 -0700 (PDT) Received: from mail-pf0-x242.google.com (mail-pf0-x242.google.com. [2607:f8b0:400e:c00::242]) by gmr-mx.google.com with ESMTPS id 142si993519pfx.2.2016.09.05.08.01.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Sep 2016 08:01:49 -0700 (PDT) Received-SPF: pass (google.com: domain of axel.lin@ingics.com designates 2607:f8b0:400e:c00::242 as permitted sender) client-ip=2607:f8b0:400e:c00::242; Received: by mail-pf0-x242.google.com with SMTP id h186so9904898pfg.2 for ; Mon, 05 Sep 2016 08:01:49 -0700 (PDT) X-Received: by 10.98.72.153 with SMTP id q25mr2523837pfi.159.1473087709727; Mon, 05 Sep 2016 08:01:49 -0700 (PDT) Received: from localhost.localdomain ([60.245.65.112]) by smtp.gmail.com with ESMTPSA id vy9sm34336964pab.22.2016.09.05.08.01.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Sep 2016 08:01:48 -0700 (PDT) From: Axel Lin To: Alexandre Belloni Cc: Alessandro Zummo , Oleksij Rempel , rtc-linux@googlegroups.com, Axel Lin Subject: [rtc-linux] [PATCH] rtc: asm9260: Fix missing spin_lock_init for priv->lock Date: Mon, 5 Sep 2016 23:01:11 +0800 Message-Id: <1473087671-8866-1-git-send-email-axel.lin@ingics.com> X-Mailer: git-send-email 2.7.4 X-Original-Sender: axel.lin@ingics.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@ingics-com.20150623.gappssmtp.com; spf=pass (google.com: domain of axel.lin@ingics.com designates 2607:f8b0:400e:c00::242 as permitted sender) smtp.mailfrom=axel.lin@ingics.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: rtc-linux@googlegroups.com X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Signed-off-by: Axel Lin --- 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) {