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: 316640 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id B4FE32C00C6 for ; Wed, 5 Feb 2014 03:01:57 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932193AbaBDQBm (ORCPT ); Tue, 4 Feb 2014 11:01:42 -0500 Received: from mail-lb0-f170.google.com ([209.85.217.170]:62815 "EHLO mail-lb0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754690AbaBDP7v (ORCPT ); Tue, 4 Feb 2014 10:59:51 -0500 Received: by mail-lb0-f170.google.com with SMTP id u14so6600315lbd.15 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=kkkOzMK4FHJXtjS7FrxHhU4Rbu2P6OqoHa7VIM8wCO2RENXN4a5QMWAueT/vS/zyMD OEOgkt9yJkJa0ht7R/sSdrkgcQE/cn0OaRP0gHJ2bbTWtJgBWY4JDp9Gpq9NyKf0l/// +kjP6Og8bgl4UAresVMg3MidpGFUroFJQOsBjJiTHyGMeO8wxeoM8fA8FMcPd8eVeozw VlPCsp6eNtgC3hnwC4Ti6Y60PtDHFF8Jpol0eZHx1YA7gjiVY9BQnfeGSspoV0OOni16 JN6lYGXQ/4BXs5TCBGJAlmyeDuyBBMG0rpAw7G3UNNdsQFp5DL8XGzV0kDqejJwxKx9r kZGA== X-Gm-Message-State: ALoCoQlwDfsoiPptRHJwCWLK4wXg5VGOEOdeH8fHn9vkVLA3P4vdy8iIit0uD/kHxLUGrqY1GGRW 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-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org 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; }