Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3032584pxb; Mon, 18 Oct 2021 07:00:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3w2nWzxBbAoH+i8I7sSSIL8Yt+ppU8OXUm48r45LJdP61htjy//mLIiiV1Q20ETNr4MK6 X-Received: by 2002:a17:906:ce45:: with SMTP id se5mr29845399ejb.386.1634565612634; Mon, 18 Oct 2021 07:00:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634565612; cv=none; d=google.com; s=arc-20160816; b=X/NtgLYemvnD1FflUy/ypS2507iOqzTu7TCcELgjU9aiM2cUx6lSxZpbbJ3+NXMqQO VptsZoueW1K6o7rYigSt5b6Xm8JRg9ImnxB+pnaJ2ZFoVE3UOiguOlNCqF4uVO4gkDLH HU6KBcgFTT0Uip9FR35kahFX2YyJqfaXMus2EhgM/yPCLaaGHnJO4QXZstigrnDAEEQ/ 0xDFu2dCdRBmLSzjQofjwmC4sFvNyi+ncLaa1wCWdjTgjWRbULHKL63DcNrdzmBZQYy3 omXKNj5v0W2Jh8/vfmh8ymuQrYpXf+d32Iv31ooEtmoLW/Toogdtsx/nQ8htVTHaG8wc lxVQ== 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=/JDzZxWYY8W2EPT2qaI6NHAVRJEVdZujzMeWawz/kKA=; b=fAfmx41CIo+R5cj1bIHcc3UujnlQPzjMTl5degjCx+BTXo45zEOmXAaaaH4azfkRBq N51PHXbVnCRq4YrRfaKkspGSniQQ7TcZxNl32rMvJzXCenltavOFbxa4WpVdXt14dIux gTr9lMUaVoDM0jHhPYogIUXlMqjLJNOX3S1amRZ0ACCf1hvCokAe2rjsPp3dZUyyeyRs 775OMUGj9a0bMbZlFTRyZKynqIgwDCLay4ekE8N3YFSmRLoinhfL6JGgHmlGrhb8j6aI aqsKBq5+DI+Hy3BGWzn8n2guW4kT6Str92pVH/Yr3SkyrGUQH8yMGjbdcsQ343xPvuL5 1BOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uD8XYr3n; 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 c23si20304649eje.22.2021.10.18.06.59.48; Mon, 18 Oct 2021 07:00:12 -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=uD8XYr3n; 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 S234339AbhJRN55 (ORCPT + 99 others); Mon, 18 Oct 2021 09:57:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:58198 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233513AbhJRNz5 (ORCPT ); Mon, 18 Oct 2021 09:55:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 210DC61A0A; Mon, 18 Oct 2021 13:40:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634564419; bh=B9OPdaySnRMGvm5T8Nz/ZoMUNOqReRoCZ5ID4bBQF2Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uD8XYr3nvV+cBCVxmX7r8ipHmlCnWL2HO7hFCnYUjCZstvbrpzziCAQBi6IQdq9qm nMA8l2juVJKPY3lA0LaYXjLQoTYFBvFctESM+drqRydJ8yZ0/4n6n1j/H2QlWzkxNH f9q9rkZxAJImpy+zOiOR0rkrzqsnIRcvA4Kd6+YU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann Subject: [PATCH 5.14 083/151] eeprom: 93xx46: fix MODULE_DEVICE_TABLE Date: Mon, 18 Oct 2021 15:24:22 +0200 Message-Id: <20211018132343.385955308@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132340.682786018@linuxfoundation.org> References: <20211018132340.682786018@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: Arnd Bergmann commit f42752729e2068a92c7d8b576d0dbbc9c1464149 upstream. The newly added SPI device ID table does not work because the entry is incorrectly copied from the OF device table. During build testing, this shows as a compile failure when building it as a loadable module: drivers/misc/eeprom/eeprom_93xx46.c:424:1: error: redefinition of '__mod_of__eeprom_93xx46_of_table_device_table' MODULE_DEVICE_TABLE(of, eeprom_93xx46_of_table); Change the entry to refer to the correct symbol. Fixes: 137879f7ff23 ("eeprom: 93xx46: Add SPI device ID table") Signed-off-by: Arnd Bergmann Link: https://lore.kernel.org/r/20211014153730.3821376-1-arnd@kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/misc/eeprom/eeprom_93xx46.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/misc/eeprom/eeprom_93xx46.c +++ b/drivers/misc/eeprom/eeprom_93xx46.c @@ -421,7 +421,7 @@ static const struct spi_device_id eeprom .driver_data = (kernel_ulong_t)µchip_93lc46b_data, }, {} }; -MODULE_DEVICE_TABLE(of, eeprom_93xx46_of_table); +MODULE_DEVICE_TABLE(spi, eeprom_93xx46_spi_ids); static int eeprom_93xx46_probe_dt(struct spi_device *spi) {