From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86C511F7060; Tue, 3 Dec 2024 15:56:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733241414; cv=none; b=g5YpCm7IS8lpi3QqDdkq9iHJbLVcFtbdRBj4iaJ7btGpsHxJ7ukIkERfRVW2tjVyRBkvmHFcS5dwxFpu6JLSmP05eY+wZj2zT4MkLSYBie5YhycNyj0nbvpIJ5fUkC4f99y7nszURS0O9pXLV5Usl/DshsSnu9OozWwZCnyryYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733241414; c=relaxed/simple; bh=Vdy5sXJ6kk9XA0wvnxrIzucZcZADWzRtXNQ08A3ILA4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=X2Uk/I2Dj7WqUtAkM3xfr8Hyyi6I3BVe+7u3ZiE02ZpG1uFBupWb8nkU8VFU1Be0fHQSJLlsnPyh5ZXZRQbKS5r69ZneME/TFtv3IXCPl0I2dViYFhHsvv8YOgIfQv0nYIT7zEQqUvi6wWfCCMyKTdSbdU87Ge7weMZd08smLQM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cvSyOBZG; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="cvSyOBZG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE45CC4CECF; Tue, 3 Dec 2024 15:56:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1733241414; bh=Vdy5sXJ6kk9XA0wvnxrIzucZcZADWzRtXNQ08A3ILA4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cvSyOBZGbigKf1ei6T3lKI7uR3crHqr6aUoFFJftC2ikCLcVTJCKCN7n/vcutbE6H sVuHjomFcC24agGlC7/1JiNRc1kIjI4NQQGTyvgL8bvI52XU6GPCl89Mliz5oUDLP6 za1I6o43DnmFIfdl507kDywDZjAGCoCGMXWFa2z0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Biju Das , Geert Uytterhoeven , Vignesh Raghavendra , Miquel Raynal , Sasha Levin Subject: [PATCH 6.12 379/826] mtd: hyperbus: rpc-if: Add missing MODULE_DEVICE_TABLE Date: Tue, 3 Dec 2024 15:41:46 +0100 Message-ID: <20241203144758.548127738@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241203144743.428732212@linuxfoundation.org> References: <20241203144743.428732212@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Biju Das [ Upstream commit 7d189579a287d5c568db623c5fc2344cce98a887 ] The rpc-if-hyperflash driver can be compiled as a module, but lacks MODULE_DEVICE_TABLE() and will therefore not be loaded automatically. Fix this. Fixes: 5de15b610f78 ("mtd: hyperbus: add Renesas RPC-IF driver") Signed-off-by: Biju Das Reviewed-by: Geert Uytterhoeven Reviewed-by: Vignesh Raghavendra Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20240731080846.257139-1-biju.das.jz@bp.renesas.com Signed-off-by: Sasha Levin --- drivers/mtd/hyperbus/rpc-if.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/mtd/hyperbus/rpc-if.c b/drivers/mtd/hyperbus/rpc-if.c index b22aa57119f23..e7a28f3316c3f 100644 --- a/drivers/mtd/hyperbus/rpc-if.c +++ b/drivers/mtd/hyperbus/rpc-if.c @@ -163,9 +163,16 @@ static void rpcif_hb_remove(struct platform_device *pdev) pm_runtime_disable(hyperbus->rpc.dev); } +static const struct platform_device_id rpc_if_hyperflash_id_table[] = { + { .name = "rpc-if-hyperflash" }, + { /* sentinel */ } +}; +MODULE_DEVICE_TABLE(platform, rpc_if_hyperflash_id_table); + static struct platform_driver rpcif_platform_driver = { .probe = rpcif_hb_probe, .remove_new = rpcif_hb_remove, + .id_table = rpc_if_hyperflash_id_table, .driver = { .name = "rpc-if-hyperflash", }, -- 2.43.0