Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2468562pxj; Mon, 10 May 2021 03:51:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdgMZ3G/8kLK3Q3GjUKmtiZ4GfxezlfuKB/kDjo1xAaFCDJnvz1XV+FJz0csmdszh5fADt X-Received: by 2002:a05:6e02:f42:: with SMTP id y2mr9526336ilj.216.1620643862979; Mon, 10 May 2021 03:51:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620643862; cv=none; d=google.com; s=arc-20160816; b=vIP3KhqXXWYqLjb236AvlwGvpFTdSrPIzK1x05ewg9ForOTTGQ9OD2rr8NitjnO517 oLQy26U0f3avhHCda02PS9JAbwCqQqpfTgONzVYg6pFrsIOWjVioGslgVcUSg1k2wklO PNg7CG0lTh9Evg962f3cFgk4as62FRY5iVzuzWbQcuZsbiRbBT3ATGW1N+C6+HJw/hyd AAZ82Prm4JxtiDGW4zv+eEq+olfergpxyKYhnKk3/YrVGeJ1jX9grGJ12fnIHD7BFBc0 v2YxWy36tq5J7ZxSO9y11sSxbqo+FtB/HWLpplS6Cj93GDD0pNRtpwVkfZl0cKwSE2ZF uNxg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=hj0LVvThdp7avg7VYA3q2zJPwZRwtPbL7Go1W+Nrkrg=; b=wdJ9Yd287DMCBp8bjQJhir+UMGBcOAjRHBSc8pE45oN65XoKKjYlGtjyzJ/XYwGM4d jPfHMGln93aQOUwgiraHvriCjtqR8Q1UJd/KhN4VeYxqdDCY5Fu7tVlJxUuUm6/gfeHq VE+kz3Uwwzn9aF3sVf0kUACCvr7sV0QXNyZlmtlpyF8jsoWLbklR6td26ZY5ZweMWTTd /urInUTGkFqxQLXj3io+KadHMeBp6oFH9XRaysts/Ikm9e7PpyGC2iksz8nqhXlSgfx2 MMaP/QFkBPCV4eMeNaXa7gC8CbNTbIIUat6xNPiuUm+uXsRoB7TEPWQmXDDIcr1ZXHS6 CL4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Et8z/YnC"; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m5si15084513jat.27.2021.05.10.03.50.51; Mon, 10 May 2021 03:51:02 -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=@linuxfoundation.org header.s=korg header.b="Et8z/YnC"; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232336AbhEJKvF (ORCPT + 99 others); Mon, 10 May 2021 06:51:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:52050 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233028AbhEJKlC (ORCPT ); Mon, 10 May 2021 06:41:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B977B61926; Mon, 10 May 2021 10:31:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620642710; bh=TS9eDSJdJn6S8caFVEeyy1zgm3uIQme1eiQe76Q5iYw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Et8z/YnC4yxk2LQo+ttvTbtaGtj19atO7TdnyGWYDFhxRizraYjQ++m31V/vudtog tNjIy5G6nWUsqVONHc8hID2JCuGysWVT4kO8WqLytyHNghDVurhZ3V70z47Yoblt0H 7egzTcBa0HUL03TqaxjOTSFUeTce2BXxH5ujNjZ4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexander Lobakin , Miquel Raynal Subject: [PATCH 5.10 020/299] mtd: spinand: core: add missing MODULE_DEVICE_TABLE() Date: Mon, 10 May 2021 12:16:57 +0200 Message-Id: <20210510102005.519488387@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexander Lobakin commit 25fefc88c71f47db0466570335e3f75f10952e7a upstream. 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 NANDs") Cc: stable@vger.kernel.org # 4.19+ Signed-off-by: Alexander Lobakin Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20210323173714.317884-1-alobakin@pm.me Signed-off-by: Greg Kroah-Hartman --- drivers/mtd/nand/spi/core.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/mtd/nand/spi/core.c +++ b/drivers/mtd/nand/spi/core.c @@ -1173,12 +1173,14 @@ static const struct spi_device_id spinan { .name = "spi-nand" }, { /* sentinel */ }, }; +MODULE_DEVICE_TABLE(spi, spinand_ids); #ifdef CONFIG_OF static const struct of_device_id spinand_of_ids[] = { { .compatible = "spi-nand" }, { /* sentinel */ }, }; +MODULE_DEVICE_TABLE(of, spinand_of_ids); #endif static struct spi_mem_driver spinand_drv = {