From patchwork Wed Jul 8 06:30:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Boichat X-Patchwork-Id: 6740761 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 11300C05AC for ; Wed, 8 Jul 2015 06:31:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3EDC2207FD for ; Wed, 8 Jul 2015 06:31:52 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id DFEAC207FB for ; Wed, 8 Jul 2015 06:31:49 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 07DC7265083; Wed, 8 Jul 2015 08:31:49 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id A719C2651B2; Wed, 8 Jul 2015 08:31:32 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 62D2D2651B2; Wed, 8 Jul 2015 08:31:31 +0200 (CEST) Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com [209.85.192.178]) by alsa0.perex.cz (Postfix) with ESMTP id 74875261AD8 for ; Wed, 8 Jul 2015 08:31:10 +0200 (CEST) Received: by pdbep18 with SMTP id ep18so139890771pdb.1 for ; Tue, 07 Jul 2015 23:31:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/80K0XHrzpyYEUhBjTsBGvXk5I5FWMckJfjt2m4eAks=; b=GY2GD2cyJMl373iIw5vHMkFLpIp1Do7DYDZVejOHM30LS/315e3sXMYWvh15d5kGwH cqHFRqqZTylKYs1ht7OqCgBX5ze86bzYEToQyFFXMqcjv6Ha4+tcJGo6XYpk/sF9NtOj pvSj+uBcf1o+dNKYAteAIPqjGCzq7WnuCFABY= 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:in-reply-to :references; bh=/80K0XHrzpyYEUhBjTsBGvXk5I5FWMckJfjt2m4eAks=; b=VXnTOos0FMlYUxRy5tK8sCRmRUwzXJp2PNHWgJWumoBNbE5E2ou9BL5ZvQxhVHvbJ9 92dwJz08WmduPgy7j2WRMSNr3RqBtb1e/zqoZ0U4Z1VUw40h5+OpNvgY1hL/pfM4fWYE 7iKsiZurVRd4ZELd4eJO+alA104jOpNTSRBBnYK96hcTMWpUTcGDYnoEEWwMXa6QrWG5 RD5icALz6eiWn4CZF+0eGIQP9fegjNv9tmYBzLvPZETJjLwqRadE7r1PIgtyV42Ve0L5 37Hzbv0TKeVsyMFy0aGIwPGHU7tIEQB1xj2JPG9RqSKwC5+hg5zW1H8ISdU3hbr6Gz/U 4BnA== X-Gm-Message-State: ALoCoQmpNlqEdH1XI4E5q0o7o/HXde9c0Totfh6naBBY8cdNTeZdMgY1YXvB0OuEA/gN0rJBgRME X-Received: by 10.68.135.73 with SMTP id pq9mr17160738pbb.46.1436337069522; Tue, 07 Jul 2015 23:31:09 -0700 (PDT) Received: from drinkcat.tpe.corp.google.com ([172.30.210.53]) by smtp.gmail.com with ESMTPSA id oe10sm1186066pdb.19.2015.07.07.23.31.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Jul 2015 23:31:08 -0700 (PDT) From: Nicolas Boichat To: Mark Brown Date: Wed, 8 Jul 2015 14:30:17 +0800 Message-Id: <1436337018-32464-3-git-send-email-drinkcat@chromium.org> X-Mailer: git-send-email 2.4.3.573.g4eafbef In-Reply-To: <1436337018-32464-1-git-send-email-drinkcat@chromium.org> References: <1436337018-32464-1-git-send-email-drinkcat@chromium.org> Cc: alsa-devel@alsa-project.org, Takashi Iwai , Liviu Dudau , Liam Girdwood , Bard Liao , Lorenzo Pieralisi , Lee Jones , Nicolas Boichat , linux-pm@vger.kernel.org, Antti Palosaari , Zhang Rui , Anatol Pomozov , Mauro Carvalho Chehab , Eduardo Valentin , Lars-Peter Clausen , Arjan van de Ven , Ingo Molnar , linux-arm-kernel@lists.infradead.org, Maxime Coquelin , Oder Chiou , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Sudeep Holla , Ajit Pal Singh Subject: [alsa-devel] [PATCHv2 2/3] thermal: sti: Add parentheses around bridge->ops->regmap_init call X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP regmap_init(...) is a macro since commit "regmap: Use different lockdep class for each regmap init call". That same name is used as a function pointer: prevent its expansion by adding parentheses around the function pointer. Signed-off-by: Nicolas Boichat --- drivers/thermal/st/st_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/st/st_thermal.c b/drivers/thermal/st/st_thermal.c index 76c515d..88c759d 100644 --- a/drivers/thermal/st/st_thermal.c +++ b/drivers/thermal/st/st_thermal.c @@ -214,7 +214,7 @@ int st_thermal_register(struct platform_device *pdev, sensor->ops = sensor->cdata->ops; - ret = sensor->ops->regmap_init(sensor); + ret = (sensor->ops->regmap_init)(sensor); if (ret) return ret;