From patchwork Sun Feb 23 05:27:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 3703211 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 80FF9BF13A for ; Sun, 23 Feb 2014 05:27:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A6238200E3 for ; Sun, 23 Feb 2014 05:27:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C92F7200E0 for ; Sun, 23 Feb 2014 05:27:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751042AbaBWF10 (ORCPT ); Sun, 23 Feb 2014 00:27:26 -0500 Received: from mail-pa0-f54.google.com ([209.85.220.54]:54475 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750980AbaBWF1Z (ORCPT ); Sun, 23 Feb 2014 00:27:25 -0500 Received: by mail-pa0-f54.google.com with SMTP id fa1so5135551pad.41 for ; Sat, 22 Feb 2014 21:27:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:content-type :mime-version:content-transfer-encoding; bh=eYm+vxR6Xirdr54Np26KYlFkbVHL2Oj530ZLwqpBLYk=; b=Jz4HMfKXTH09YnZ6AlMVauO63vCxb4j0GMkzZEF/Cu9HG7UrlmPWVZd3XyjYrblCv3 snZYNKuzK9F+kA8cvdLNn7Dhw6wvdedg0IeOEEP0z8S76fDO5KXf4cw40n/nGR6kZRx9 biVxXoX++0uJ/PuHtzbODL9LCIN5IX26t5H3GDSR6ma6GpxneEANK9KK1pcm99e45Kme 75OhZj7qT3ph0vYP5KxoP4YBvFP1RTLhzpq15FPz/STkLpIwSPpoykAse3A4KfKd4QHM NB0r4QJWjedD2YOllDeYz5Wq0BEphPzx+9PyRIMhp4iRtrP4t1AfHs3lSgZEq2NwAl6h IBxQ== X-Gm-Message-State: ALoCoQnZCpVw5Z6N5zWlKev2rpLs209mFDOkLzJnVqD7Bd3dt9JVy+TZr/wOQ9xse9Jry8kRpV/P X-Received: by 10.66.252.135 with SMTP id zs7mr6525492pac.13.1393133245055; Sat, 22 Feb 2014 21:27:25 -0800 (PST) Received: from [1.167.66.27] (1-167-66-27.dynamic.hinet.net. [1.167.66.27]) by mx.google.com with ESMTPSA id e3sm36795648pbc.17.2014.02.22.21.27.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 22 Feb 2014 21:27:24 -0800 (PST) Message-ID: <1393133236.32087.0.camel@phoenix> Subject: [PATCH 1/2] spi: qup: Fix build error due to a typo From: Axel Lin To: Mark Brown Cc: "Ivan T. Ivanov" , linux-spi@vger.kernel.org Date: Sun, 23 Feb 2014 13:27:16 +0800 X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix below build error when CONFIG_PM_RUNTIME=y: C [M] drivers/spi/spi-qup.o drivers/spi/spi-qup.c: In function 'spi_qup_pm_suspend_runtime': drivers/spi/spi-qup.c:712:12: error: 'QUP_CLOCK_AUTO_GATE' undeclared (first use in this function) drivers/spi/spi-qup.c:712:12: note: each undeclared identifier is reported only once for each function it appears in drivers/spi/spi-qup.c: In function 'spi_qup_pm_resume_runtime': drivers/spi/spi-qup.c:725:13: error: 'QUP_CLOCK_AUTO_GATE' undeclared (first use in this function) make[2]: *** [drivers/spi/spi-qup.o] Error 1 make[1]: *** [drivers/spi] Error 2 make: *** [drivers] Error 2 Signed-off-by: Axel Lin --- drivers/spi/spi-qup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c index dec339d..886edb4 100644 --- a/drivers/spi/spi-qup.c +++ b/drivers/spi/spi-qup.c @@ -709,7 +709,7 @@ static int spi_qup_pm_suspend_runtime(struct device *device) /* Enable clocks auto gaiting */ config = readl(controller->base + QUP_CONFIG); - config |= QUP_CLOCK_AUTO_GATE; + config |= QUP_CONFIG_CLOCK_AUTO_GATE; writel_relaxed(config, controller->base + QUP_CONFIG); return 0; } @@ -722,7 +722,7 @@ static int spi_qup_pm_resume_runtime(struct device *device) /* Disable clocks auto gaiting */ config = readl_relaxed(controller->base + QUP_CONFIG); - config &= ~QUP_CLOCK_AUTO_GATE; + config &= ~QUP_CONFIG_CLOCK_AUTO_GATE; writel_relaxed(config, controller->base + QUP_CONFIG); return 0; }