From patchwork Sat Sep 10 01:55:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 668327 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3sWHGs6KQHz9sf9 for ; Sat, 10 Sep 2016 11:56:05 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ingics-com.20150623.gappssmtp.com header.i=@ingics-com.20150623.gappssmtp.com header.b=FZpjYhFt; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751464AbcIJB4E (ORCPT ); Fri, 9 Sep 2016 21:56:04 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:36837 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751014AbcIJB4E (ORCPT ); Fri, 9 Sep 2016 21:56:04 -0400 Received: by mail-pa0-f67.google.com with SMTP id ez1so4539154pab.3 for ; Fri, 09 Sep 2016 18:56:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ingics-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=aaVRP79FIOmY8oXxwvhDFzCOc5r2EjWaCO0Q+cGnKcU=; b=FZpjYhFtD0zLJPA6idD4PMIusrmN4bt2gw0yOIK2/1hg5+h4u9veRW509f3MpHP3/1 DgRehE6VXUQKOw+VEL8nO4omBFg5oPY6zWykTGq4Gf3hd8bYqzv5Tc1WER2jwKR+qRpx KpFTUv3CuUxYlm18rGr9DqY/2YE9/a1lYoeN90PLw69aoKEKkbOOrx7FhRrCl3vn+R3C 0wRkMp/iK48umhiWJMZzxGg057lH2738QQreKSzG2eyPcQt8BIQ95QfvUoj1zzEkQTC1 FSVRFwmRiXacPKXjCLSKQUTJh1DkN/2AX2CtZN1a1/VzKQGVqPtboVxiyxArpBxof1Sx IeCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=aaVRP79FIOmY8oXxwvhDFzCOc5r2EjWaCO0Q+cGnKcU=; b=GJxb8z5s8sfvZoBCz790Csb9u0y/CSvZj1oGeyxYK/VKsLdv15Une/ywlPRNPQ5Og0 SCfCF3EbzupnyDxuiNunmox7yUzwgDsJHMqcYv+IEQapzSNhdg1+dPISkLbvEA4zdJHK W3OnX2TG8n77AEV99Z6z//vNZFEnesb6cK1hzAQrtk6VZaLZK7I+gbxAQxgv+Wk/R5Uv IAGeqcZZa+tSUDNiNaeBX7vWC40iPbnGY6vu+y09IIlG2xS+jJk+foJgD8Gsh1JVMM4k 1GuPh9XB/DQ/QExLDG9naQ64umfB9ykmb798uHeFg3MhdyYGMu9XzfSeWGD+0t1OyyT8 +faQ== X-Gm-Message-State: AE9vXwOqRgN9E1LivTBRkO1mLVFSWhvJUicQo3dWtbE5QSw+62dWjCr6WHIQUDaed+Eyaw== X-Received: by 10.66.146.201 with SMTP id te9mr12059667pab.104.1473472563494; Fri, 09 Sep 2016 18:56:03 -0700 (PDT) Received: from localhost.localdomain (118-171-143-41.dynamic.hinet.net. [118.171.143.41]) by smtp.gmail.com with ESMTPSA id uk1sm7970488pab.19.2016.09.09.18.56.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Sep 2016 18:56:02 -0700 (PDT) From: Axel Lin To: Thierry Reding Cc: Neil Armstrong , linux-pwm@vger.kernel.org, Axel Lin Subject: [PATCH] pwm: meson: Fix missing spin_lock_init Date: Sat, 10 Sep 2016 09:55:49 +0800 Message-Id: <1473472549-20140-1-git-send-email-axel.lin@ingics.com> X-Mailer: git-send-email 2.7.4 Sender: linux-pwm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pwm@vger.kernel.org The driver uses the spin_lock but not initialize it, fix it. Signed-off-by: Axel Lin Acked-by: Neil Armstrong --- drivers/pwm/pwm-meson.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pwm/pwm-meson.c b/drivers/pwm/pwm-meson.c index 381871b..9d5bd7d 100644 --- a/drivers/pwm/pwm-meson.c +++ b/drivers/pwm/pwm-meson.c @@ -474,6 +474,7 @@ static int meson_pwm_probe(struct platform_device *pdev) if (IS_ERR(meson->base)) return PTR_ERR(meson->base); + spin_lock_init(&meson->lock); meson->chip.dev = &pdev->dev; meson->chip.ops = &meson_pwm_ops; meson->chip.base = -1;