From patchwork Tue Feb 4 15:58:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 3577351 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 1DD43C02DC for ; Tue, 4 Feb 2014 16:02:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4C54120158 for ; Tue, 4 Feb 2014 16:02:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 73CA920170 for ; Tue, 4 Feb 2014 16:02:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932209AbaBDQBX (ORCPT ); Tue, 4 Feb 2014 11:01:23 -0500 Received: from mail-lb0-f182.google.com ([209.85.217.182]:55981 "EHLO mail-lb0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754693AbaBDP7w (ORCPT ); Tue, 4 Feb 2014 10:59:52 -0500 Received: by mail-lb0-f182.google.com with SMTP id w7so6649987lbi.13 for ; Tue, 04 Feb 2014 07:59:50 -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=5/eMFaH1hj8M0dDUoz+9gSy3KI95LEtO+kT1c461e+8=; b=A1SXSwJGnTpALsrpoU1doX4+85o3PhKULyS1+bvCrzMpfNmxaLBJrslwxIyIt9irgx slv2r/Llht5/2/zyHaYG4zKasUqWFbxyeyWu5TJfVpDbugQ0Ry6h/wxbneIwYsv7u3BS 55XTw7YpgK/jVfBE48g/zhveW+IFh7puwr/kISbplFlZtIm38l8APbHOL0Y5a1E0qzuL Mp68xTJEiu8tetbLtUpYyLTmbUZCddedViuZVkqKe4tNbX4fiHpR7AMmYXPPw3xqKND7 pI07hXx0TouLrbqV/lw0LXK2NsDWb7Hz2VV+rfdpq4y0ZXERZrRNAnbaMbM05e49ceJv ljtQ== X-Gm-Message-State: ALoCoQkjij+nTJCsbTbnH26IRhWFD2vC+ZAEdUg0puVF8Ea1L4X/pJVsh3pv2vtOCFI4WK8l5pkD X-Received: by 10.112.97.173 with SMTP id eb13mr1504544lbb.65.1391529590286; Tue, 04 Feb 2014 07:59:50 -0800 (PST) Received: from localhost.localdomain (host-95-199-220-119.mobileonline.telia.com. [95.199.220.119]) by mx.google.com with ESMTPSA id dm8sm35906603lad.7.2014.02.04.07.59.47 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Feb 2014 07:59:49 -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 12/17] i2c: nomadik: Remove redundant call to pm_runtime_disable Date: Tue, 4 Feb 2014 16:58:53 +0100 Message-Id: <1391529538-21685-13-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1391529538-21685-1-git-send-email-ulf.hansson@linaro.org> References: <1391529538-21685-1-git-send-email-ulf.hansson@linaro.org> 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.5 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 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 840bcf9..42c9e51 100644 --- a/drivers/i2c/busses/i2c-nomadik.c +++ b/drivers/i2c/busses/i2c-nomadik.c @@ -1105,7 +1105,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; }