From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63A80C04E53 for ; Wed, 15 May 2019 11:15:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 37CDF20644 for ; Wed, 15 May 2019 11:15:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557918914; bh=rCb+uBo+T9INmPBv9rpAsKWN6V+tUL6i3hHpei7j564=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=wjUipN+8q+qw4GTKgMlk00K9MSvRFyMN+9u7baxFSe5uj6/P+nFBuU7xIu1/Cx0ir W0XWNtaVCPrZz/3dknqb5+WM3W8WaKEy8yTudysbcREmIxiS3aQ0ZgBgRqOU3a1+o2 /2bGIsRa/IMi1igBju0UHXA2ZCkzL24MDcFjWlUY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729846AbfEOLPM (ORCPT ); Wed, 15 May 2019 07:15:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:51542 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730245AbfEOLPI (ORCPT ); Wed, 15 May 2019 07:15:08 -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 32EB92084F; Wed, 15 May 2019 11:15:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557918907; bh=rCb+uBo+T9INmPBv9rpAsKWN6V+tUL6i3hHpei7j564=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cLSPd/usWxC92bgBTRbGoN3brwbDysauMdYscfeiLExu8RMS6KfHE8JJSRjdyFPXZ 6NOE5T/Q8x9Zc0b5K4z1xJPXMwy2BDXKhAU5Wm4Yvk5BxEH+FtsLjZD/bO0ZtMK0IB mToYpAMLwY3J8H5e7vU/2GdWC5avfbofwHu7XpQo= 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 4.9 28/51] spi: ST ST95HF NFC: declare missing of table Date: Wed, 15 May 2019 12:56:03 +0200 Message-Id: <20190515090625.146480803@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190515090616.669619870@linuxfoundation.org> References: <20190515090616.669619870@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 c2840e4129624..850e75571c8ee 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