Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp219241pxb; Sat, 21 Aug 2021 00:19:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaBIKPOmlrZnkowDaurdfBkIF8kuKKyPAopa0bYZY3mrAbHmkLcOHQ/FRoP2Wl3ck3GvwU X-Received: by 2002:a17:906:3b53:: with SMTP id h19mr25536857ejf.431.1629530390466; Sat, 21 Aug 2021 00:19:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629530390; cv=none; d=google.com; s=arc-20160816; b=YdOabvgBbbC52GGZTW6JPPSj7/T0Rw2dfNwWumq8xWqnA08NUYRgh4TGHwxN4RHfw+ /+98m9mky+vl7JY7Utj4DTppX2nX1lSl8LxqCw36sGNuEbOyoE7aZ4gglS+PNS+6p0+e CthG3ZcwprDVhxiDNBdAfriCueftUgPJMUAuQMad1vlLVPWxrLFQOr0fMi8XH5k0mn81 mQ7J/e4a6fUtqIq75XH83Akb3wqGmY8ErIKlZaeesOUac+3+wSYsYvdsi3ZZUAhmwfVK j8mpG2rB8rYS1lDqOqNEC43aE5/VRECyMPE/b7xVruEpbv19VUzP1A4agBOu1eoK+ZLs xOnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=kvkl0bQWagZl9+o9IRbJo6mpfsSTpc/MyhmYWaOMKNs=; b=bLaOyloR0yd/CzbxJeQWf0C5Jd0Qew0LgPlLM1GzmbqBuPtBtPXmdq94Eo3l9fzjFj cR7bo9S4SSg+CA/yAoWPl5aUbsyeL2EHi2/PZjNbDy5gqiERfwzdkBKorE8RVPT0WZW1 8shXpbZm12DKt9q7NegBe2lv+VunN0pMCI0T7i0yb3SQnR/RCywGWCEfoS04KUL737fy vVyhkKnS+Tl00E9H58JkoVZihCYKv8UP4JTOW24s9oRaYM88+m9RGGZHg2vye+SryDL7 TlfwPTOOT9OyQOk4UpYKhdQak7LsVS7ACpCIG0JsdgnxmLq2yG1miie7E/SIptns7uq0 uLmQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j18si3756994edp.44.2021.08.21.00.19.27; Sat, 21 Aug 2021 00:19:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232802AbhHUHSG (ORCPT + 99 others); Sat, 21 Aug 2021 03:18:06 -0400 Received: from smtp05.smtpout.orange.fr ([80.12.242.127]:36250 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232097AbhHUHSF (ORCPT ); Sat, 21 Aug 2021 03:18:05 -0400 Received: from pop-os.home ([90.126.253.178]) by mwinf5d09 with ME id k7HP2500Z3riaq2037HQhN; Sat, 21 Aug 2021 09:17:25 +0200 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sat, 21 Aug 2021 09:17:25 +0200 X-ME-IP: 90.126.253.178 From: Christophe JAILLET To: linus.walleij@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH] i2c: busses: i2c-nomadik: Remove a useless call in the remove function Date: Sat, 21 Aug 2021 09:17:22 +0200 Message-Id: <4f4c2c5c20b61c4bb28cb3e9ab4640534dd2adec.1629530169.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit a410963ba4c0 ("Merge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux"), there is no more 'request_mem_region()' call in this driver. So remove the 'release_mem_region()' call from the remove function which is likely a left over. There is no details in the above commit log, but at its end we can read: Conflicts: drivers/i2c/busses/i2c-nomadik.c This may explain why this call has been left here. Fixes: a410963ba4c0 ("Merge branch 'i2c-embedded/for-next' of git://git.pengutronix.de/git/wsa/linux Signed-off-by: Christophe JAILLET --- This patch is completely speculative and without details about commit a410963ba4c0 it's hard to be sure of the intent. All I can say is that it looks logical to me and that it compiles! --- drivers/i2c/busses/i2c-nomadik.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-nomadik.c b/drivers/i2c/busses/i2c-nomadik.c index a2d12a5b1c34..e215a7357873 100644 --- a/drivers/i2c/busses/i2c-nomadik.c +++ b/drivers/i2c/busses/i2c-nomadik.c @@ -1057,7 +1057,6 @@ static int nmk_i2c_probe(struct amba_device *adev, const struct amba_id *id) static void nmk_i2c_remove(struct amba_device *adev) { - struct resource *res = &adev->res; struct nmk_i2c_dev *dev = amba_get_drvdata(adev); i2c_del_adapter(&dev->adap); @@ -1067,7 +1066,6 @@ static void nmk_i2c_remove(struct amba_device *adev) /* disable the controller */ i2c_clr_bit(dev->virtbase + I2C_CR, I2C_CR_PE); clk_disable_unprepare(dev->clk); - release_mem_region(res->start, resource_size(res)); } static struct i2c_vendor_data vendor_stn8815 = { -- 2.30.2