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: 3663421 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AA5139F1EE for ; Mon, 17 Feb 2014 15:21:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9DBA8201E7 for ; Mon, 17 Feb 2014 15:21:46 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 60B77201DE for ; Mon, 17 Feb 2014 15:21:45 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WFQ0M-0000xH-Vd; Mon, 17 Feb 2014 15:21:11 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WFQ0F-00017r-SG; Mon, 17 Feb 2014 15:21:03 +0000 Received: from mail-la0-f43.google.com ([209.85.215.43]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WFQ0D-00016f-SU for linux-arm-kernel@lists.infradead.org; Mon, 17 Feb 2014 15:21:02 +0000 Received: by mail-la0-f43.google.com with SMTP id pv20so11556106lab.30 for ; Mon, 17 Feb 2014 07:20:36 -0800 (PST) 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; bh=PYIKBedNkdbT/HpQXwtRmWBEyC2O4xqXnGyF6nAoISM=; b=OvY51MpJY3LckhM33DHTpdTqbfQY18FfPqQqM3Sg1HgTdU76Z9gGtB+1SafxJeoLML iQoVQxDbHozgVSCNz5fu4A8BbgbVIfzTO8LimdN3eBNBOzXZ8bLtqdlUc2Pk1oNt6zSx JPQrqsXOlY0ZwilRE3nwezJV2+oMAth79cgd/skLV4L6+MAGFy92Q18z++j8md7EiTN8 wjNCPs2iVfsCsW1wHlL3s1vBWZnyJeAQuW3oj5sBBGvUZo/fwMvP8BXuI62HElgsqhvZ HZHGkEBlFwXbqB8UmnXgY4WRUQxpp1DhEtKhClQt1ek1zKh/5/2OZwv1e2TJSvTm/2bA Cuiw== X-Gm-Message-State: ALoCoQlJQ/yF485a570AOzVyBUzTRdijSNIVQgblQyWznx9aOw6ESt970rkwVDEs1ZvLhQb3zTaT 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140217_102102_049589_792DF927 X-CRM114-Status: GOOD ( 10.31 ) X-Spam-Score: -2.6 (--) Cc: Ulf Hansson , Mark Brown , Russell King , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 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; }