Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2001439ybh; Fri, 17 Jul 2020 07:03:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOeRZE27xiRDhJWOBZI34jcpgY1MDPg4dsJdQOp57/RNoWiQYGpn8iR81T/417G8uD6LGK X-Received: by 2002:a17:906:4685:: with SMTP id a5mr8616558ejr.46.1594994590647; Fri, 17 Jul 2020 07:03:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594994590; cv=none; d=google.com; s=arc-20160816; b=hNQqc3GA5pqI6JRyqXvC3xKqw0YSBKUQhZ7Xthm7mtmU9oCQp6pklDNpr3wsN+ysvy 5PJgF9Q2MIgTqE9oZyr/VVu4xO+0Czl1HYRSdjtKu+IGGGlx0JSZRz3s4OCLtmJXmpAj Sf5s9zxgzRveiffhWx/1rtAIf1exJbEV4j6eHdsQUKAuOh1Nl7QZcBwvO9Z5mj2+2uI+ sPoG/ye7BfAoD8GIlh9m7vNFcXKQl5R6DQDcitFZDyhJheAxwKqhdFkeUrD2E3LcwFlt GtTrdQFVLWX1V7LdvEoTlgL7ejnFJivA/svJvseBC/qCE0QCpGJZNG05ZLP00tNLUMQL 9Qig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=wKVaT16rLDngeb3bowtXPaut890evf22BiUFPQQTpps=; b=ERKwJ5iaAaN89y/CrFIZtzm/iT53Tv6ngbmjGKi3fzRCojkoVKGV/p4VoXAZ1iDmDS z2eUsDyC+JkLKoP89citABXPTUNEJUprYeicGJxnXKocn+8q6yyLPQYktn+9M+hEfAsB mZ1RcLGCklTNKC1NT8UQhdkGGEww5hrot3p2uv1N7NYNQBUhzxT1aidIidax/Eqa2OAt PY822qBuFxWEt8oHU0eQCbXdol9vUYVW+CUfu6d8iTolY9XMANx1c9ESRiKafcoFeQVM kFU3J69qmsJmJ6UvbHxGdrfT3534PpEuTUnaWcUcCcixk0K6Pb/E7VzrEySSQhIJp0Dl QcWQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f15si5585137edt.552.2020.07.17.07.02.45; Fri, 17 Jul 2020 07:03:10 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726635AbgGQOCV (ORCPT + 99 others); Fri, 17 Jul 2020 10:02:21 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:50907 "EHLO relay8-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726210AbgGQOCV (ORCPT ); Fri, 17 Jul 2020 10:02:21 -0400 X-Originating-IP: 90.65.108.121 Received: from localhost (lfbn-lyo-1-1676-121.w90-65.abo.wanadoo.fr [90.65.108.121]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id C50FF1BF20D; Fri, 17 Jul 2020 14:02:18 +0000 (UTC) Date: Fri, 17 Jul 2020 16:02:18 +0200 From: Alexandre Belloni To: Lee Jones Cc: broonie@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Radu Pirea , Nicolas Ferre , Ludovic Desroches Subject: Re: [PATCH v2 12/14] spi: spi-at91-usart: Remove unused OF table 'struct of_device_id' Message-ID: <20200717140218.GR3428@piout.net> References: <20200717135424.2442271-1-lee.jones@linaro.org> <20200717135424.2442271-13-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200717135424.2442271-13-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/07/2020 14:54:22+0100, Lee Jones wrote: > The only way this driver can be probed by MFD via its parent device. > > No other reference to 'microchip,at91sam9g45-usart-spi' exists in the kernel. > > Fixes the following W=1 kernel build warning(s): > > drivers/spi/spi-at91-usart.c:684:34: warning: ‘at91_usart_spi_dt_ids’ defined but not used [-Wunused-const-variable=] > 684 | static const struct of_device_id at91_usart_spi_dt_ids[] = { > | ^~~~~~~~~~~~~~~~~~~~~ > > Cc: Radu Pirea > Cc: Nicolas Ferre > Cc: Ludovic Desroches > Suggested-by: Alexandre Belloni > Signed-off-by: Lee Jones Acked-by: Alexandre Belloni > --- > drivers/spi/spi-at91-usart.c | 7 ------- > 1 file changed, 7 deletions(-) > > diff --git a/drivers/spi/spi-at91-usart.c b/drivers/spi/spi-at91-usart.c > index 88033422a42ae..8c8352625d232 100644 > --- a/drivers/spi/spi-at91-usart.c > +++ b/drivers/spi/spi-at91-usart.c > @@ -681,13 +681,6 @@ static const struct dev_pm_ops at91_usart_spi_pm_ops = { > at91_usart_spi_runtime_resume, NULL) > }; > > -static const struct of_device_id at91_usart_spi_dt_ids[] = { > - { .compatible = "microchip,at91sam9g45-usart-spi"}, > - { /* sentinel */} > -}; > - > -MODULE_DEVICE_TABLE(of, at91_usart_spi_dt_ids); > - > static struct platform_driver at91_usart_spi_driver = { > .driver = { > .name = "at91_usart_spi", > -- > 2.25.1 > -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com