Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp470601yba; Wed, 15 May 2019 04:42:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqw81UsPys5Sds2gbWim9p7Bsw+GAaptGZyimSqIXejFcpqWQKQumH80ZNOj0z+bl8FBjU6C X-Received: by 2002:a63:8242:: with SMTP id w63mr43289897pgd.169.1557920547499; Wed, 15 May 2019 04:42:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557920547; cv=none; d=google.com; s=arc-20160816; b=ZEWnPDXuZqaajdVfOT9b3618JDAZOqMPWLDLZpsppnz9UgVZPERdE8ZZtnNchzORxY SPTJEMJgaYkIafcYGJ8YbZmFIa0JRnRjf/euzxIqSX92lbly2KzNncD/kqynlKKxRJXN EAXcesUENEZzZN3FS0bOCbWXvXsvRngmhAo3iO8/oMeI+fYQ2OEM/WAkmcTUAqMv/6kh 2RE2OHaZpbcIdNhaEswaxJ0eWIUrOKK//izUu2/M1dDPkRYPHoBwHRq1TDlAPFgGJ7ck cBiZ0hLjB5B978TypXkIigSGW2LPhrLDbAAAv35Q81f7vs+ka7sW1hafmcJO0O6hvkl6 B/VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=tHqUh+/HYS7n6gD1GWwCuXadQloSJ276YSAMqdm+O38=; b=w8k4+YJUsyGVckN4UrncE7WcqLA/AiyJzVMeEAUyuAj5auBEZDuDOFNx5jhpwI7Aq7 S2YAAwohmLIeV7LmnCXx7IiMPmfAMFeHCXRaFXM7JrhweZoflZn8lBIUgs6Innc4zqf1 oHIeF4FIozROU136VZzActD9QD28OcOT3zZyqxa9Qcbqwh8JpN0kmQFxw8gYBSUVo/pQ 3Iy2QsmTyDGb02vBV4hnWYX1IKY3Dv7SOZ47/k3fX4kakO9fLOoCx5iX9H8c34TE8r23 XMT3tfonWbRZsEVpIPaZgcd12wjNIaNh0aOJqwplQmi0GIk18qIJgtDrKQK+mstfuta7 0QgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="w/9/LbLS"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b36si1486605pla.353.2019.05.15.04.42.12; Wed, 15 May 2019 04:42:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="w/9/LbLS"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732558AbfEOL3Y (ORCPT + 99 others); Wed, 15 May 2019 07:29:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:40622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732545AbfEOL3X (ORCPT ); Wed, 15 May 2019 07:29:23 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2B40020818; Wed, 15 May 2019 11:29:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557919762; bh=OauWDb99dndtmVwXevW2sEDRQJz0FaVlZ55NtZqBDZw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=w/9/LbLSVxCU+MDE/OHwsBPUHKlA0FdLA6t2JZw/dorkiPVVUFJmKoqlOpcuaBz1k XxUXyfgroI0ktwULuxU6DoWXfGS2ZObAmbYITfpwEwAfJDxWHIfRnkqioo5Y9nijAN XooKU6UYZ3vRg4ULAdl+CUFndFOsSmt1OttcI3HI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Javier Martinez Canillas , Daniel Gomez , "David S. Miller" , Sasha Levin Subject: [PATCH 5.0 085/137] spi: Micrel eth switch: declare missing of table Date: Wed, 15 May 2019 12:56:06 +0200 Message-Id: <20190515090659.697348762@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190515090651.633556783@linuxfoundation.org> References: <20190515090651.633556783@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 2f23a2a768bee7ad2ff1e9527c3f7e279e794a46 ] Add missing table for SPI driver relying on SPI device match since compatible is in a DT binding or in a DTS. Before this patch: modinfo drivers/net/phy/spi_ks8995.ko | grep alias alias: spi:ksz8795 alias: spi:ksz8864 alias: spi:ks8995 After this patch: modinfo drivers/net/phy/spi_ks8995.ko | grep alias alias: spi:ksz8795 alias: spi:ksz8864 alias: spi:ks8995 alias: of:N*T*Cmicrel,ksz8795C* alias: of:N*T*Cmicrel,ksz8795 alias: of:N*T*Cmicrel,ksz8864C* alias: of:N*T*Cmicrel,ksz8864 alias: of:N*T*Cmicrel,ks8995C* alias: of:N*T*Cmicrel,ks8995 Reported-by: Javier Martinez Canillas Signed-off-by: Daniel Gomez Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/phy/spi_ks8995.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/net/phy/spi_ks8995.c b/drivers/net/phy/spi_ks8995.c index f17b3441779bf..d8ea4147dfe78 100644 --- a/drivers/net/phy/spi_ks8995.c +++ b/drivers/net/phy/spi_ks8995.c @@ -162,6 +162,14 @@ static const struct spi_device_id ks8995_id[] = { }; MODULE_DEVICE_TABLE(spi, ks8995_id); +static const struct of_device_id ks8895_spi_of_match[] = { + { .compatible = "micrel,ks8995" }, + { .compatible = "micrel,ksz8864" }, + { .compatible = "micrel,ksz8795" }, + { }, + }; +MODULE_DEVICE_TABLE(of, ks8895_spi_of_match); + static inline u8 get_chip_id(u8 val) { return (val >> ID1_CHIPID_S) & ID1_CHIPID_M; @@ -529,6 +537,7 @@ static int ks8995_remove(struct spi_device *spi) static struct spi_driver ks8995_driver = { .driver = { .name = "spi-ks8995", + .of_match_table = of_match_ptr(ks8895_spi_of_match), }, .probe = ks8995_probe, .remove = ks8995_remove, -- 2.20.1