Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp470554yba; Wed, 15 May 2019 04:42:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEc1ZkjicoH7RsmGM3oCu3jXX+CSI2h+TUejMQ9SAwuiAjPQkBg2+n6EfQTTFOqUdTHOYE X-Received: by 2002:a17:902:22:: with SMTP id 31mr43920069pla.15.1557920544082; Wed, 15 May 2019 04:42:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557920544; cv=none; d=google.com; s=arc-20160816; b=sW2m9xQDw+UnukCriRqaLkD6jPK9EWtPWKDEq7m0JSHs9voJIbvrh8Jr2WctD5t4uU ekdpdm+lKCYvPOD5BAP0oIf1Wn5Yx2XzFP+jtNr8cv9knPs3nRSXpKsP5h1bcnDxCYaT mVclkxMgidPgtzc5HaL6Xa6EUm/osK82+BvDG4hedguXp2EV7Sd0G3w6ZKnJU+qOmY7t uun4D1g+J1udl8KRCqIrcCms5rqakwhs5OmL01M2hV0llLcvvlUOJCtb7fE8yXvVYOPG 87Qfjxv0xwXlldplsfkverjK21RI2E22jXd2vV2JICZyCfpRXaEaYgERdlYDh28Xn51e omhg== 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=wP3QWiRXqI/vuK0F1/JINGMpb3JyDLUBQxr790DFNU0=; b=lXc0vIMDuqj31SXNMP1aITD/2ic5f7mY0ck050J0LdG/j84nC/UPaP9J+JgCreVCYJ DlfUYWWDjbYsEJbgJK87sx22bndUkHWfwXS8MGt9or1DTxrp8x4h8+QlRTpXM5Ttmz/W XtBx4v0S9g+Lvz3qc62yj+z7JoN6bdyyfEGBlqLVnuQp4I1xYPfy7tSTprZcpHgkO8nG 7y3coqBjkV8jvyw3z83ooDnVJUrtUw2+AHmdLiDotmQqX01I9H0p0wRE7Fg0uu/cTyBn ROIuu1orYerF+Pjfxfv52DlNmSc5eBsFAtu4THtLp5mhWZI4ABBcSWufSEQkIqtdXD7q ttWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LWJlvdj7; 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 g191si1652534pgc.197.2019.05.15.04.42.09; Wed, 15 May 2019 04:42:24 -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=LWJlvdj7; 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 S1732568AbfEOL32 (ORCPT + 99 others); Wed, 15 May 2019 07:29:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:40676 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726546AbfEOL30 (ORCPT ); Wed, 15 May 2019 07:29:26 -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 CCC00206BF; Wed, 15 May 2019 11:29:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557919765; bh=OGmgcPDYmpGZoe6b7p5Kka/NjwDpmejKew+gZBRRk08=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LWJlvdj7GxYA+6IGejIdY5DGsOhxHf4iiROWmqw1efBL7tk5UH6vAt7g8R4WjRAD4 U1M3DjPIku8YeMPPSHrCifh2AxpkG3nFjC8ZitAP/oBsxa83r0rE4fV2INS4NQ23pk v3U2eC9cxeJpvztcmvRAtmrIYUb+ovyaHtWgFcgQ= 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 086/137] spi: ST ST95HF NFC: declare missing of table Date: Wed, 15 May 2019 12:56:07 +0200 Message-Id: <20190515090659.777071307@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 d04830531d0c4a99c897a44038e5da3d23331d2f ] 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/nfc/st95hf/st95hf.ko | grep alias alias: spi:st95hf After this patch: modinfo drivers/nfc/st95hf/st95hf.ko | grep alias alias: spi:st95hf alias: of:N*T*Cst,st95hfC* alias: of:N*T*Cst,st95hf Reported-by: Javier Martinez Canillas Signed-off-by: Daniel Gomez Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/nfc/st95hf/core.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/nfc/st95hf/core.c b/drivers/nfc/st95hf/core.c index 2b26f762fbc3b..01acb6e533655 100644 --- a/drivers/nfc/st95hf/core.c +++ b/drivers/nfc/st95hf/core.c @@ -1074,6 +1074,12 @@ static const struct spi_device_id st95hf_id[] = { }; MODULE_DEVICE_TABLE(spi, st95hf_id); +static const struct of_device_id st95hf_spi_of_match[] = { + { .compatible = "st,st95hf" }, + { }, +}; +MODULE_DEVICE_TABLE(of, st95hf_spi_of_match); + static int st95hf_probe(struct spi_device *nfc_spi_dev) { int ret; @@ -1260,6 +1266,7 @@ static struct spi_driver st95hf_driver = { .driver = { .name = "st95hf", .owner = THIS_MODULE, + .of_match_table = of_match_ptr(st95hf_spi_of_match), }, .id_table = st95hf_id, .probe = st95hf_probe, -- 2.20.1