From patchwork Wed Jul 15 15:06:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235594 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp703065ilg; Wed, 15 Jul 2020 08:07:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGmTVbgVqNUtAKNgj+XpiYK1zrNlC9haZLB3JHsoUsR68jjmdRbD/SOABCNSbbJ2CzSmKo X-Received: by 2002:a50:d784:: with SMTP id w4mr95074edi.34.1594825642206; Wed, 15 Jul 2020 08:07:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594825642; cv=none; d=google.com; s=arc-20160816; b=lX1igW+13F3HXhhOIdRhZoBhx5VfllTZQtRBTYA+Zk8p+4HJJ6mxH/6ZlwEN03taJ0 nZEoyTWPBcw1/Bc1lyGVJthp4ELp+i8RkNOhJZLa6BDLKyhZ5pDLKAC2pHMKGRtleFil +xE2MAr/EtQ9GfoqT28zXZLbdahnySfjPDSqwsbpRnXBB8JJB57RFzrhtK+KRmiFzRHj KpccRlLPIh90ytRDivVkNrkHuZhfl4PmoPaTFxLvxCCc2useSYhjayUeVLHqd4gvwfma pGkPgP0C701hObyeZYuzpkqarZQ5Flj4ww0aotuvD8mypoPtx7r2B1Q70g7jnSPnox4c iYSg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=42oj6jbSoGTF/ydaYibmpIO6VIJqDyq5aw5c0LpPRTc=; b=abZh3zFsGFpSsXuCijtLw3DWEzZWZllAfFE8oHaVGn2vr4fKkzuI/rRWSjDGi7e3FV 4q4qJRoVQBrmSOONc2Mlw1ZirJoYiuQObTScBnVEQ+V7TPS2Qz+ycvwrR3IBnc6aW5Fy BjKvM+9jmqSksygU2GemPzSWCQ/lyHF2cQsosO0uZlNzMnoBQWDfs0Ts0p2j1D6uilsw hmtvHHzb0Sb4VeUyj4zZwsTBJXn5sqrHPMeHZBQal87M0up1uDSjV2ZBDaIYWxJ7TwSY 8xrLzALREcJt1+8OVdp8kRs95YLZg53vxCJ3WbIE87NH1gT88nzvwNcda57hNhE/W7So fB2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RH7cBJ2W; spf=pass (google.com: domain of linux-spi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bf28si1525471edb.312.2020.07.15.08.07.22; Wed, 15 Jul 2020 08:07:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-spi-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=@linaro.org header.s=google header.b=RH7cBJ2W; spf=pass (google.com: domain of linux-spi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728024AbgGOPGx (ORCPT + 2 others); Wed, 15 Jul 2020 11:06:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728006AbgGOPGw (ORCPT ); Wed, 15 Jul 2020 11:06:52 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2340C08C5DB for ; Wed, 15 Jul 2020 08:06:51 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id a6so3096791wrm.4 for ; Wed, 15 Jul 2020 08:06:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=42oj6jbSoGTF/ydaYibmpIO6VIJqDyq5aw5c0LpPRTc=; b=RH7cBJ2WlhKQHMXBNizOzo0T2ahy8XU3B6sEARR+uPl/o4nKI3IuEZJ8uLvbbZC5t4 l+AQ8s+3lqDbOapGH58ozWtwg6v2+RT2FZ/JrwPNhkDFeWKYhdds3OJIy2j/3nVpUHrf vghBDZGIJosR4XixZz0e228Ju4WbUGTyTYT3ukz5dmafd9HXsLrkhYug7ZwpZ93bHTAP 2QenT/NInodOgQnlQXZhCDNVS3NG0xHeAslNgHrC3Z4fXIrCBuLGhlx+eqnWpBg6zyd6 SI4SMBZdEt6nG3WgD8giZCqQmEn/lEzYF4u8dFu5sOWMyxqNUNeH2E/mOMwRTNvnggql BEqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=42oj6jbSoGTF/ydaYibmpIO6VIJqDyq5aw5c0LpPRTc=; b=bGWsd/rwE+DPdNTcIkZzu4KRrd94ZRGLF41Ooq+w1I6+L9tl5hpuSpGIABPHEVCKJZ L2UjnhuZKYJWSKHlT4acD6q8GTof1O3sy3kBVCX32p79JJlOMLSudG+rheCWUUq7YZCG BVjf+DHVBT75G2rd6eH2RTnLvsGu5SwqpdUIiKA4KxYl0CUTVfaWpwTrrV83kDn839rU cD4f9iOIdOm+pqHOp8D4CECndO1M6PBPpYU7NNhIfKQjokpvb56qcTDGyZIHggOJigtP +Ao6tETLmXusT5PG5awn1fI7VrlRs0/tSswp0b1zdlaacvd5o8JCaK0mopa4QFty+ywH XdVA== X-Gm-Message-State: AOAM533lyrDAu5+38EtE3P9cwxuV0WRFWDC3UsidpF7GprZlt5Qgo/hl FXuTZTH288uypysrX+7RiAWZaA== X-Received: by 2002:a5d:4a45:: with SMTP id v5mr11986837wrs.228.1594825610727; Wed, 15 Jul 2020 08:06:50 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.61]) by smtp.gmail.com with ESMTPSA id w2sm3906140wrs.77.2020.07.15.08.06.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 08:06:49 -0700 (PDT) From: Lee Jones To: broonie@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, Lee Jones , Radu Pirea , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches Subject: [PATCH 12/14] spi: spi-at91-usart: Make use of the defined 'struct of_device_id' Date: Wed, 15 Jul 2020 16:06:30 +0100 Message-Id: <20200715150632.409077-13-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715150632.409077-1-lee.jones@linaro.org> References: <20200715150632.409077-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org It's there so why not use it. 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: Alexandre Belloni Cc: Ludovic Desroches Signed-off-by: Lee Jones --- drivers/spi/spi-at91-usart.c | 1 + 1 file changed, 1 insertion(+) -- 2.25.1 diff --git a/drivers/spi/spi-at91-usart.c b/drivers/spi/spi-at91-usart.c index 88033422a42ae..d47a20be43ccd 100644 --- a/drivers/spi/spi-at91-usart.c +++ b/drivers/spi/spi-at91-usart.c @@ -692,6 +692,7 @@ static struct platform_driver at91_usart_spi_driver = { .driver = { .name = "at91_usart_spi", .pm = &at91_usart_spi_pm_ops, + .of_match_table = at91_usart_spi_dt_ids, }, .probe = at91_usart_spi_probe, .remove = at91_usart_spi_remove,