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: 3645601 Return-Path: X-Original-To: patchwork-linux-mmc@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 315E49F1EE for ; Thu, 13 Feb 2014 14:11:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6DA682018E for ; Thu, 13 Feb 2014 14:11:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A106120179 for ; Thu, 13 Feb 2014 14:11:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751838AbaBMOLR (ORCPT ); Thu, 13 Feb 2014 09:11:17 -0500 Received: from mail-wi0-f175.google.com ([209.85.212.175]:40033 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751139AbaBMOJP (ORCPT ); Thu, 13 Feb 2014 09:09:15 -0500 Received: by mail-wi0-f175.google.com with SMTP id hm4so8654479wib.8 for ; Thu, 13 Feb 2014 06:09:14 -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:in-reply-to :references; bh=m8B9uvRmfyA+yJfD6EMVw+zyLABtaYPtXSWbATesvqk=; b=iOB3CbudFfjlWtouLKK8LRCTrbWagnSws6MqpNE+4gg9A8YsliU1xE+iOWr3XB7wfG c6vknQgTIy8EYeUfTVsBDRWECMKxgIzjjjq32wo0Z3PIpPc2lx7cSe/FSdK68irY09ol tKUZyECk0aLi2+FNyAzw79/5DHrV3J0Wff+p/Wq/bNvkLws0fN0Eeg1uOjorXgRdouSv dthQFGf4TLLoJdAFSbHlab8rsbkNCgpveesoRUgggHDHIL4pfp6B0cSBLpMv4Hj9awG0 zuTqrkWOoiUVTVPgrDSOnY9s2CgpMGfGxfZmQRu2TPjkBnpkNyN2d1Z3Ez0AbhVTpxxi okew== X-Gm-Message-State: ALoCoQmV9lPOC1GvKpHSpr5v99LuijbQ35XyPkN3iSjte/wZ91cei4y4jJ/xRRs+/2TlSBIJ9A+r 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> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, RCVD_IN_DNSWL_HI, 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 --- 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; }