Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4441652pxf; Tue, 23 Mar 2021 10:37:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhFZxgcbv1AwcdGwmfQz6Ct0FW/iU9LQtyLvCrjb3VgJpEQojQA/VHVqIXakGg/aqYymBQ X-Received: by 2002:a17:906:1c13:: with SMTP id k19mr5984054ejg.457.1616521069840; Tue, 23 Mar 2021 10:37:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616521069; cv=none; d=google.com; s=arc-20160816; b=iMtpHESFr/93bhr1gPrcXP3ToUJuor1mpP8OYOjA+B3/oZ53U6zMgfi9fUZAPnkKaE Xx2cGiT35PEtzw3yO67LMyJ9Q2AHU4Jnrk7k1GcK0Krd/jfWgsqQv7E0z5gMP8C0b8n+ rU/FAjnFuvTbucgfLMe4MTYPwoZmfOf6wsvV0+LgdD6xOt07nELHxJyoOULVMoR7BeIF ypPnoql7YoufUK/ETcsAbr2M7VUBcRikfBObTY1HXDlvYUX2M39tik9mQ3fi75XU70Kc ftaJZz+1WBhlXRvUnffvFYR0hI4U1Dd/6UE2prf6ilVMSO2EwNE1K4qwIsgjpC/eD2D7 oPPQ== 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=wu/vIyNG8bowz2h1UHHz2tTlQrq4yx+F+/I3ASmWS2c=; b=LlaE1jw2z8g6UDiarxsfFYYD5ttpejtP3Yl85JZILyf8/5lZbdaRhQenoIX6PhK3sF MuF4IYS+G8gCrh0rlj5zDF8ietaWCT7SSs6aQjPoCKj71PIfvcPx50JmjVQvcIwjw1n6 CcGpcjOZEORNJ+VRiWukkwG4OaIRbP9uBJnWeKEZWuFC3gD/jnhH3JuGmeYxcW61RS9C fTJHhwydwBpVsHwacrJNjaKs6P+/2iSwd5c5Mc2c/WZdHGVCMxMiAbX98bk5xyBMaaey DlmUZqUV9C6qg1J9bhkVCy9A8SixHilnRCH3BLavB2Urs6Q34DAJw6gRwzOhjapbK2Iz 6DGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b="F7FI/LY5"; 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 y25si14114514eje.459.2021.03.23.10.37.25; Tue, 23 Mar 2021 10:37:49 -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="F7FI/LY5"; 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 S230189AbhCWRf1 (ORCPT + 99 others); Tue, 23 Mar 2021 13:35:27 -0400 Received: from mail-40134.protonmail.ch ([185.70.40.134]:57042 "EHLO mail-40134.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbhCWRfN (ORCPT ); Tue, 23 Mar 2021 13:35:13 -0400 Date: Tue, 23 Mar 2021 17:35:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1616520910; bh=wu/vIyNG8bowz2h1UHHz2tTlQrq4yx+F+/I3ASmWS2c=; h=Date:To:From:Cc:Reply-To:Subject:From; b=F7FI/LY5Lnhz0FcaWuKQUxIHIkYGZXsfQWTjw0QVz2JavPkVkcUC0cTpJXpP0mlqk 77ITTyvH1+1YpZ7YcidisetJsEcOKJ1ui4e2rSpnVFV8pwXf8ZiuklkhiRcRSn0J+n zwoj25G/sRKXaXXnYgGcz9QOAekh95BwXZ50uCEy9rFC7XVmW9WMtkaM6L+N0fLyHC 7He9A5kUdG8CEvg1w7q9ibM24gMgZc+NYUXt/euRrgMQKUg5Itqf63IH77v6OmvInm uIgk8oWosL7My40OCbtBz9y29N8cicxoeWRsC4XA8KqWTLxAkYhPnNexxWKg59IWQC EbagArjMvXlsQ== 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 mtd/fixes] mtd: spinand: core: add missing MODULE_DEVICE_TABLE() Message-ID: <20210323173451.317461-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. 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