Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4442449pxf; Tue, 23 Mar 2021 10:39:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjvkWS0lFBZKKA7vAp3JBZDYiRYsXEJKrtJx3byw0vQ6xDF6lz79zxRfmTctSYR61S0BoJ X-Received: by 2002:a17:907:248b:: with SMTP id zg11mr5913470ejb.364.1616521140000; Tue, 23 Mar 2021 10:39:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616521139; cv=none; d=google.com; s=arc-20160816; b=K9PY0MeyI5NsFZht3B3Ta61SkPEFyryD8CLybTnYReo9UYK1FX7o4L/Gsj+Ts95mTs nNmNxOIZjbsmJMKEhtdWQm5nNIXOzglzKkqIgGElaXAp6oLbxBOWBubqwaSIKKga5eNH yni7oMHA5L7gsCyf4xAAyPzTcYoV25HPUBn6sWjShmQqDxNzTkZee3IxhlkFXqU/kpLB EyDfR7KgZ4IRoHOLBpuk7mZ1tHY0Ug1xBZqdGL4TtRkmoXjEMr+WAb8D7bmFrUBD5ISp dBsA23Gz7NmeZQCTLVHoa+wS+bXBs1gzNeAV4bCDUsGVF59D3NVmd44TZSSh0uZphWlP rVCA== 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:subject:reply-to:cc:from:to:dkim-signature:date; bh=B76jZ93shqjUOUQEXOsghNFmKmbiN4UEo8ixi177UoA=; b=xPugiYul+MMWK957oxl1Xvm8QT6eseBfhWMAw4I2m3nrzue3quSVfOj4ZzVBEfcMhG g8AclokZiMFsG2aetjwJHkJ8OkQPjmh43DPqTucJbfobxvqRjHfP8eNmj5UrvZDnuCM0 vHGdYsrGFgIlkSHO9jB+zTyKMf7fI7gXPLKPa6GIBywaJg/ChM2Ilb4UBSVBFpm24z+D 48SM+ZZOgsouRdhY6MSk5W9iiRna7lnfFsgqLCAmkuwZYO8djDzGvN4SE6kQas7VYPBp PhgLcSxAnPAKWoKA9aOaUCPWCrNMfOiYtd1bRcCa1e2eHCAL30hkyda9RyWDLluC0nM8 MSvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=XygTCk2L; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rh9si14904095ejb.417.2021.03.23.10.38.36; Tue, 23 Mar 2021 10:38:59 -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; dkim=pass header.i=@pm.me header.s=protonmail header.b=XygTCk2L; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230269AbhCWRhg (ORCPT + 99 others); Tue, 23 Mar 2021 13:37:36 -0400 Received: from mail-40136.protonmail.ch ([185.70.40.136]:62116 "EHLO mail-40136.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230310AbhCWRh1 (ORCPT ); Tue, 23 Mar 2021 13:37:27 -0400 Date: Tue, 23 Mar 2021 17:37:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1616521045; bh=B76jZ93shqjUOUQEXOsghNFmKmbiN4UEo8ixi177UoA=; h=Date:To:From:Cc:Reply-To:Subject:From; b=XygTCk2L+LU5D4FsgMrA/7EH7eqjNqqfnnAceMgTGvAvic+o8zNuuiUHbrrl05uEZ VgG/kaqtVhJkyScYcgjmkuXv0QX4x8LUHro1MoZMUMV0X7Eaav8TzU/6e6bLGi5gAR eNxGVUDiSJsAneAjka7gPkqztAdxGAXTmdFKEwbmsno8dsmsLaYO4OotH0/SvP4yis H8ftHLGMQH40O8P88PNF0wVbD7vlYFTZMwMrvv1/Gm8mc6v4GuSYKIHoRsKfd33P3x +LGxwD11CWjLiLCJvZ+4e1S/cjqlvzHRIL8f/6WlqU4SriImQnwPEDSC3HYj7cLxFm rDFO73qqbWPCw== To: Miquel Raynal From: Alexander Lobakin Cc: Richard Weinberger , Vignesh Raghavendra , Boris Brezillon , Alexander Lobakin , linux-mtd@lists.infradead.org, stable@vger.kernel.org, linux-kernel@vger.kernel.org Reply-To: Alexander Lobakin Subject: [PATCH v2 mtd/fixes] mtd: spinand: core: add missing MODULE_DEVICE_TABLE() Message-ID: <20210323173714.317884-1-alobakin@pm.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The module misses MODULE_DEVICE_TABLE() for both SPI and OF ID tables and thus never autoloads on ID matches. Add the missing declarations. Present since day-0 of spinand framework introduction. Fixes: 7529df465248 ("mtd: nand: Add core infrastructure to support SPI NAN= Ds") Cc: stable@vger.kernel.org # 4.19+ Signed-off-by: Alexander Lobakin --- drivers/mtd/nand/spi/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index 61d932c1b718..17f63f95f4a2 100644 --- a/drivers/mtd/nand/spi/core.c +++ b/drivers/mtd/nand/spi/core.c @@ -1263,12 +1263,14 @@ static const struct spi_device_id spinand_ids[] =3D= { =09{ .name =3D "spi-nand" }, =09{ /* sentinel */ }, }; +MODULE_DEVICE_TABLE(spi, spinand_ids); #ifdef CONFIG_OF static const struct of_device_id spinand_of_ids[] =3D { =09{ .compatible =3D "spi-nand" }, =09{ /* sentinel */ }, }; +MODULE_DEVICE_TABLE(of, spinand_of_ids); #endif static struct spi_mem_driver spinand_drv =3D { -- 2.31.0