From patchwork Tue Feb 5 14:35:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 14554 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 425EE23F8B for ; Tue, 5 Feb 2013 14:37:02 +0000 (UTC) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com [209.85.215.48]) by fiordland.canonical.com (Postfix) with ESMTP id 17326A18D00 for ; Tue, 5 Feb 2013 14:37:02 +0000 (UTC) Received: by mail-la0-f48.google.com with SMTP id fq13so218537lab.7 for ; Tue, 05 Feb 2013 06:37:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=SFJpK8XhxcGaU9IHLnV6fN3zdOK/HMuh+hsCT0TNNt8=; b=D0lY2Rv0RrOh7BzK8yUzEdGGoPBKiO0ZDuJ21DX8XbJM+XBBcYkMDv/YQkHpyKtW/D 6zTYIkl6dho2MLpEg/zFUN+tOB3xp4mBkczSnhOuPMQe0a7dSxX/+wuu85ZwwagZqdyU u0NEmVbyyU3iMz71WZmlCKqnLLKcjucy7LCqlpaF/x/PKTnbHwzNfD2WqqKDpLtOcIW/ Tqpk55NpwCslAk1IFnGQ9IRddWoMEv37gAN26oGi78i4ja/NSnibBhTcugei/hsm3+HE 2Gv3ozRsuOHEey9jmVgYsCvNgvb54yoE+A1KcDuUDscQrF7gZKy9RLSRrWSUTX47ERnz 8Kqw== X-Received: by 10.112.42.168 with SMTP id p8mr253452lbl.103.1360075021685; Tue, 05 Feb 2013 06:37:01 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.112.91.146 with SMTP id ce18csp136479lbb; Tue, 5 Feb 2013 06:37:00 -0800 (PST) X-Received: by 10.66.73.138 with SMTP id l10mr65023986pav.44.1360075019894; Tue, 05 Feb 2013 06:36:59 -0800 (PST) Received: from mail-da0-f50.google.com (mail-da0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id i7si23307090pay.15.2013.02.05.06.36.59 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 05 Feb 2013 06:36:59 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of haojian.zhuang@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of haojian.zhuang@linaro.org) smtp.mail=haojian.zhuang@linaro.org Received: by mail-da0-f50.google.com with SMTP id h15so85678dan.9 for ; Tue, 05 Feb 2013 06:36:58 -0800 (PST) X-Received: by 10.66.72.201 with SMTP id f9mr65032618pav.38.1360075018622; Tue, 05 Feb 2013 06:36:58 -0800 (PST) Received: from localhost.localdomain ([67.198.145.34]) by mx.google.com with ESMTPS id w2sm24443908pax.22.2013.02.05.06.36.54 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 05 Feb 2013 06:36:57 -0800 (PST) From: Haojian Zhuang To: qingx@marvell.com, sameo@linux.intel.com, linux-kernel@vger.kernel.org Cc: patches@linaro.org, Haojian Zhuang Subject: [PATCH] backlight: max8925: clean build warning Date: Tue, 5 Feb 2013 22:35:43 +0800 Message-Id: <1360074943-11436-1-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <5110d184.0vSENeTH4nmtv7tl%fengguang.wu@intel.com> References: <5110d184.0vSENeTH4nmtv7tl%fengguang.wu@intel.com> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQmT89cuKYqbM8W2Vp3V7H+khAfLqr8gqiDghub7stOqvD/7FBCZuwbZq3kGAADu5Fny3WRb drivers/video/backlight/max8925_bl.c: In function ‘max8925_backlight_probe’: drivers/video/backlight/max8925_bl.c:177:3: warning: statement with no effect [-Wunused-value] Replace the macro definition by function. Signed-off-by: Haojian Zhuang --- drivers/video/backlight/max8925_bl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/video/backlight/max8925_bl.c b/drivers/video/backlight/max8925_bl.c index 5ca11b0..d0714ad 100644 --- a/drivers/video/backlight/max8925_bl.c +++ b/drivers/video/backlight/max8925_bl.c @@ -121,7 +121,11 @@ static int max8925_backlight_dt_init(struct platform_device *pdev, return 0; } #else -#define max8925_backlight_dt_init(x, y) (-1) +static int max8925_backlight_dt_init(struct platform_device *pdev, + struct max8925_backlight_pdata *pdata) +{ + return -1; +} #endif static int max8925_backlight_probe(struct platform_device *pdev)