From nobody Fri Oct 18 10:15:50 2024 Received: from smtp.smtpout.orange.fr (smtp-22.smtpout.orange.fr [80.12.242.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F3407140E34 for ; Thu, 25 Jul 2024 20:48:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.12.242.22 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721940492; cv=none; b=sCQQ38HlD4OcaJuu0xR45paVCDUQkcoDBK8TdbLzSqVePKHc8mMISsZkykO0Gf1G4iCroJuVtwRERv01/6GC8SMuJB8/GVsB1pjJe1zqINU80fYblSsRZXlxuy3hvzo7wEbAZkxDJe7SEkJCTxnpLwuhKXueJNY4suX46FUT5UM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721940492; c=relaxed/simple; bh=zIezW2gyvZlphHWc2qpY5uwJDFehBqLxbokz8cFiNY0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=X7FH27F6Cfs32bFxE45wcb7XjxMsXUi+3ecsNhB11iE26YxZwz9bVWvCYod2C/wrK29Q5DmnPTTc/tCaoHIJ6lzjnoc/On7crGe1p31mwgfe1PKUpcyFoO8QGfpU9vTl30ET5GC2nxuOiTavn3OY8EhUkm/wK2iUQ+2CRVX91nw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr; spf=pass smtp.mailfrom=wanadoo.fr; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b=bLe4FTQQ; arc=none smtp.client-ip=80.12.242.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wanadoo.fr Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=wanadoo.fr header.i=@wanadoo.fr header.b="bLe4FTQQ" Received: from fedora.home ([90.11.132.44]) by smtp.orange.fr with ESMTPA id X5MSsJCR06bu3X5MYs692a; Thu, 25 Jul 2024 22:46:58 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1721940418; bh=rozVsuc8wM35stzKu05d3CpPokbEuodbf3R8I1BIa8Q=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=bLe4FTQQ3g1+g+UM+vKQg2QlJcC5pTyw3gt+HfOSqPlsusCQKeCTyoLVq+BtDyx1h ll/mfS6DvWLUdV5c9+ez3XhxfedTY10dJCOUn5/uamnboax9fyAXwhdg+PNWZVAe+U MkXbAOMVq53IlwMFWu0RgSNnn8FMW0ovfElcyi4hOWQrW5ZgHPpeoc2ASqU/XENd1W VjHTzQk6fdCXMm7egNomla7AWjx3FAapdr5DAe9/w2W3gu41dPWzVbSPPdmqAiGX7X vsBe0eYVF4CUyw6QWvkUud87z5SItFlEPLuJUN1HAkuAMNS8ZG12fRHxt5VzXcwQ/r aiXMgEx/AFwMw== X-ME-Helo: fedora.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Thu, 25 Jul 2024 22:46:58 +0200 X-ME-IP: 90.11.132.44 From: Christophe JAILLET To: dmitry.torokhov@gmail.com, vipulkumar.samar@st.com, viresh.kumar@linaro.org Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH 1/2] Input: spear-keyboard - Fix a double put in spear_kbd_remove() Date: Thu, 25 Jul 2024 22:46:49 +0200 Message-ID: X-Mailer: git-send-email 2.45.2 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The 'input_dev' is a managed resource allocated with devm_input_allocate_device(), so there is no need to call input_unregister_device() in the remove function. In fact, this call was correctly removed in commit 6102752eb354 ("Input: spear-keyboard - switch to using managed resources"), but silently re-introduced later in the commit in Fixes. Fixes: 9336648978c2 ("Input: spear-keyboard - add clk_{un}prepare() support= ") Signed-off-by: Christophe JAILLET --- Compile tested-only --- drivers/input/keyboard/spear-keyboard.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/keyboard/spear-keyboard.c b/drivers/input/keyboa= rd/spear-keyboard.c index 557d00a667ce..5d9fc8dc9433 100644 --- a/drivers/input/keyboard/spear-keyboard.c +++ b/drivers/input/keyboard/spear-keyboard.c @@ -276,7 +276,6 @@ static void spear_kbd_remove(struct platform_device *pd= ev) { struct spear_kbd *kbd =3D platform_get_drvdata(pdev); =20 - input_unregister_device(kbd->input); clk_unprepare(kbd->clk); } =20 --=20 2.45.2