From patchwork Thu Feb 13 14:09:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 24596 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f69.google.com (mail-vb0-f69.google.com [209.85.212.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B5D54202E2 for ; Thu, 13 Feb 2014 14:09:17 +0000 (UTC) Received: by mail-vb0-f69.google.com with SMTP id m10sf22514047vbh.0 for ; Thu, 13 Feb 2014 06:09:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=m8B9uvRmfyA+yJfD6EMVw+zyLABtaYPtXSWbATesvqk=; b=TZxznHrMfAeGfSZ/mTwKf0Am2/UMEBwBgovSKqK+wsqBAriLRGKhPSkwT9ENfHWYOz W2b9n26GrvlMgtsXlEuDum+WEA0yNJuzIpvr1mR61f4ML+7CaRvvm425vV/pWdFGu6et dvzY6MyGIVswhrhqS5cMwHtULnPs3Jejl0HQ+mgse9ouLurfS9TX6u8lJDzh+9x0ggG6 sr62LLY5cb7KmkV7CcvLYhjhqVPDNmPClKYcGRoa7d3+pQuuFiuVvVEiR863W2djzzMS 2qdOyglbMLionQVyVFgvQTZkT7R4K1piPH0L31puCtnc9dQkTIls6HO1meXwBpm85IQr Nlrg== X-Gm-Message-State: ALoCoQnoGyf8suh6MPSskrpqNt0CBesvT9lbHIzSr2Io36o23cjtus6OjrMjOpIL3TkgwfYfKrnM X-Received: by 10.236.121.4 with SMTP id q4mr534399yhh.34.1392300556528; Thu, 13 Feb 2014 06:09:16 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.20.100 with SMTP id 91ls3372371qgi.18.gmail; Thu, 13 Feb 2014 06:09:16 -0800 (PST) X-Received: by 10.52.246.42 with SMTP id xt10mr907645vdc.9.1392300556397; Thu, 13 Feb 2014 06:09:16 -0800 (PST) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id ke3si681343veb.103.2014.02.13.06.09.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Feb 2014 06:09:16 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id ks9so8336497vcb.11 for ; Thu, 13 Feb 2014 06:09:16 -0800 (PST) X-Received: by 10.220.99.72 with SMTP id t8mr1129138vcn.10.1392300556290; Thu, 13 Feb 2014 06:09:16 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp28403vcz; Thu, 13 Feb 2014 06:09:15 -0800 (PST) X-Received: by 10.180.89.211 with SMTP id bq19mr6523824wib.58.1392300555226; Thu, 13 Feb 2014 06:09:15 -0800 (PST) Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by mx.google.com with ESMTPS id d5si3908441wik.26.2014.02.13.06.09.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Feb 2014 06:09:15 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.177 is neither permitted nor denied by best guess record for domain of ulf.hansson@linaro.org) client-ip=209.85.212.177; Received: by mail-wi0-f177.google.com with SMTP id e4so8616664wiv.16 for ; Thu, 13 Feb 2014 06:09:14 -0800 (PST) X-Received: by 10.180.182.199 with SMTP id eg7mr6676280wic.13.1392300554593; Thu, 13 Feb 2014 06:09:14 -0800 (PST) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id q15sm4823177wjw.18.2014.02.13.06.09.12 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Feb 2014 06:09:13 -0800 (PST) From: Ulf Hansson To: Russell King , linux-arm-kernel@lists.infradead.org Cc: Alessandro Rubini , Linus Walleij , Wolfram Sang , Chris Ball , Mark Brown , linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-spi@vger.kernel.org, linux-mmc@vger.kernel.org, Ulf Hansson Subject: [PATCH V2 12/17] i2c: nomadik: Remove redundant call to pm_runtime_disable Date: Thu, 13 Feb 2014 15:09:03 +0100 Message-Id: <1392300547-23365-2-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1392300547-23365-1-git-send-email-ulf.hansson@linaro.org> References: <1392300547-23365-1-git-send-email-ulf.hansson@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The amba bus are responsible for pm_runtime_enable|disable, remove the redundant pm_runtime_disable at driver removal. Cc: Alessandro Rubini Cc: Linus Walleij Cc: Wolfram Sang Signed-off-by: Ulf Hansson --- Changes in v2: Rebased on top of latest i2c-nomadik branch. --- drivers/i2c/busses/i2c-nomadik.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-nomadik.c b/drivers/i2c/busses/i2c-nomadik.c index 5faf9e2..d800d0f 100644 --- a/drivers/i2c/busses/i2c-nomadik.c +++ b/drivers/i2c/busses/i2c-nomadik.c @@ -1079,7 +1079,6 @@ static int nmk_i2c_remove(struct amba_device *adev) i2c_clr_bit(dev->virtbase + I2C_CR, I2C_CR_PE); if (res) release_mem_region(res->start, resource_size(res)); - pm_runtime_disable(&adev->dev); return 0; }