From patchwork Wed Oct 17 15:25:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Jan_L=C3=BCbbe?= X-Patchwork-Id: 192076 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-ea0-f184.google.com (mail-ea0-f184.google.com [209.85.215.184]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id DBB8A2C008D for ; Thu, 18 Oct 2012 02:25:15 +1100 (EST) Received: by mail-ea0-f184.google.com with SMTP id c12sf1815150eaa.11 for ; Wed, 17 Oct 2012 08:25:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:x-beenthere:received-spf:from:to:cc:subject:date :message-id:x-mailer:x-sa-exim-connect-ip:x-sa-exim-mail-from :x-sa-exim-scanned:x-ptx-original-recipient:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=fzBzaU8RrmFIPv3uzNWIJpuLo4Ue6Jc/FD/amVP2a0k=; b=Yg+ipelQ7KeAgyjgiYdOdN0dx7usem81yFTF0xx+uDnay7H0M0SniEb6RQnn6xpNMq tw+yTl7MDa1C+rcYocgqJ6GumuXl/i6VIkBqfj6kp9xzB+uOVr3WvmBZZQUlHFXBBCGs lrN1kkrFuo77gBfBQYPpmApz3ZNGFw2jFg79tgYNyw6gpsIBrq2M2b3kf/DEK//Fxqe4 Pdqe9f0BMnCcbZMEVd1iFgboD/RrChPqVOTI71Oo3owX3iBFSTsx3UtQ1vcNY6rn/Yu0 pZQmONcSyyJivPO6Cm5S5QW2UqtKiXQe2GOj6PYtw5lQpLgpAox1Qh5w/OTlMybRAYGj MoEg== Received: by 10.204.130.4 with SMTP id q4mr1389123bks.27.1350487511910; Wed, 17 Oct 2012 08:25:11 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.204.155.71 with SMTP id r7ls7623626bkw.6.gmail; Wed, 17 Oct 2012 08:25:11 -0700 (PDT) Received: by 10.204.129.9 with SMTP id m9mr570007bks.1.1350487510984; Wed, 17 Oct 2012 08:25:10 -0700 (PDT) Received: by 10.204.129.9 with SMTP id m9mr570006bks.1.1350487510966; Wed, 17 Oct 2012 08:25:10 -0700 (PDT) Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de. [2001:6f8:1178:4:290:27ff:fe1d:cc33]) by gmr-mx.google.com with ESMTPS id v13si2214946bkw.0.2012.10.17.08.25.10 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 17 Oct 2012 08:25:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of jlu@pengutronix.de designates 2001:6f8:1178:4:290:27ff:fe1d:cc33 as permitted sender) client-ip=2001:6f8:1178:4:290:27ff:fe1d:cc33; Received: from dude.hi.pengutronix.de ([2001:6f8:1178:2:21e:67ff:fe11:9c5c]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TOVUb-00080p-So; Wed, 17 Oct 2012 17:25:09 +0200 Received: from jlu by dude.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1TOVUa-00029d-Q1; Wed, 17 Oct 2012 17:25:08 +0200 From: Jan Luebbe To: Alessandro Zummo Cc: rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org, Jan Luebbe Subject: [rtc-linux] [PATCH] rtc: rtc-imxdi: add missing spin lock initialization Date: Wed, 17 Oct 2012 17:25:05 +0200 Message-Id: <1350487505-7789-1-git-send-email-jlu@pengutronix.de> X-Mailer: git-send-email 1.7.10.4 X-SA-Exim-Connect-IP: 2001:6f8:1178:2:21e:67ff:fe11:9c5c X-SA-Exim-Mail-From: jlu@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: rtc-linux@googlegroups.com X-Original-Sender: jlu@pengutronix.de X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of jlu@pengutronix.de designates 2001:6f8:1178:4:290:27ff:fe1d:cc33 as permitted sender) smtp.mail=jlu@pengutronix.de Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: Sender: rtc-linux@googlegroups.com List-Subscribe: , List-Unsubscribe: , Signed-off-by: Jan Luebbe --- drivers/rtc/rtc-imxdi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/rtc/rtc-imxdi.c b/drivers/rtc/rtc-imxdi.c index b2fe920..85f19ad 100644 --- a/drivers/rtc/rtc-imxdi.c +++ b/drivers/rtc/rtc-imxdi.c @@ -392,6 +392,8 @@ static int dryice_rtc_probe(struct platform_device *pdev) if (imxdi->ioaddr == NULL) return -ENOMEM; + spin_lock_init(&imxdi->irq_lock); + imxdi->irq = platform_get_irq(pdev, 0); if (imxdi->irq < 0) return imxdi->irq;