From patchwork Mon Feb 17 15:20:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 24775 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f71.google.com (mail-pa0-f71.google.com [209.85.220.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9A50E20143 for ; Mon, 17 Feb 2014 15:20:36 +0000 (UTC) Received: by mail-pa0-f71.google.com with SMTP id kp14sf37606547pab.6 for ; Mon, 17 Feb 2014 07:20:35 -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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=PYIKBedNkdbT/HpQXwtRmWBEyC2O4xqXnGyF6nAoISM=; b=jPK5PLXlsPhBu1yeyrKML1/oeeY2+0rrUkyuN2SH+yY0IkuX5O3AbjdFfYRkwdJFle zasSOGRVXmCSfdq++E4IDJfBVDi2gNRb/SXCgfS8Tm1owNnocM7emv8BKaObVK5fXYfx foggJGDVGWLWwQ0/j1Jes922Pr3HM/R0XOyN8GtEEb8qItZ4tVkuUkJpyVssRn8y2lS5 XM/o+v3d2CNM1ck2qhjsOEOrZuXfEsy6C+saOhe7bGatR62xB55BQ6zLi1rfi3qYZqpR r0qqa23yULpOux1L9NnR3D8weLTjqhPtmUidWphtxU+E4LxRcUseDv8D8+z2PBvpgLK5 NqzA== X-Gm-Message-State: ALoCoQn3Bd53RPSfij2UFuuuZYz0lyOMe//hXI7nt9+toWDA9qZrJVvn51YlPkp1KTXzaf7vRWMm X-Received: by 10.66.141.231 with SMTP id rr7mr2351177pab.47.1392650435870; Mon, 17 Feb 2014 07:20:35 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.49 with SMTP id v46ls913632qge.6.gmail; Mon, 17 Feb 2014 07:20:35 -0800 (PST) X-Received: by 10.52.170.241 with SMTP id ap17mr14567988vdc.13.1392650435756; Mon, 17 Feb 2014 07:20:35 -0800 (PST) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id w5si4539164vcl.66.2014.02.17.07.20.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Feb 2014 07:20:35 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.172; Received: by mail-ve0-f172.google.com with SMTP id c14so12365718vea.31 for ; Mon, 17 Feb 2014 07:20:35 -0800 (PST) X-Received: by 10.220.98.204 with SMTP id r12mr438080vcn.48.1392650435623; Mon, 17 Feb 2014 07:20:35 -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 u4csp146454vcz; Mon, 17 Feb 2014 07:20:35 -0800 (PST) X-Received: by 10.112.132.131 with SMTP id ou3mr17020241lbb.29.1392650434527; Mon, 17 Feb 2014 07:20:34 -0800 (PST) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx.google.com with ESMTPS id z4si25677954lal.44.2014.02.17.07.20.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Feb 2014 07:20:34 -0800 (PST) Received-SPF: neutral (google.com: 209.85.217.182 is neither permitted nor denied by best guess record for domain of ulf.hansson@linaro.org) client-ip=209.85.217.182; Received: by mail-lb0-f182.google.com with SMTP id w7so11621767lbi.27 for ; Mon, 17 Feb 2014 07:20:33 -0800 (PST) X-Received: by 10.112.140.202 with SMTP id ri10mr17205761lbb.9.1392650433821; Mon, 17 Feb 2014 07:20:33 -0800 (PST) Received: from linaro-ulf.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id l4sm19267702lbd.15.2014.02.17.07.20.31 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Feb 2014 07:20:33 -0800 (PST) From: Ulf Hansson To: Alessandro Rubini , Linus Walleij , Wolfram Sang , linux-i2c@vger.kernel.org Cc: Russell King , linux-arm-kernel@lists.infradead.org, Mark Brown , Ulf Hansson Subject: [PATCH V3 12/17] i2c: nomadik: Remove redundant call to pm_runtime_disable Date: Mon, 17 Feb 2014 16:20:29 +0100 Message-Id: <1392650429-14855-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.7.9.5 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.128.172 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 --- 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 cd15c03..5fdfc97 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; }