Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1436404pxb; Sun, 11 Apr 2021 20:05:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwOwlc+6o3UxKaTqA/I2jmwgBOf2hqFwAB8nSAkMST4s/DW0CCwrOBL70KwWIP7ZzHSrT35 X-Received: by 2002:aa7:c850:: with SMTP id g16mr27149267edt.324.1618196730334; Sun, 11 Apr 2021 20:05:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618196730; cv=none; d=google.com; s=arc-20160816; b=0Mlu0j+UQjfOOLtkxI2+FrW2XyEwAcjLpMbfgP3ABfPuRpFe6MSNf5effzzv/2DNwv rjZ5aTB8L5cVpR4F3HmarR8GovlOLhi1UxtHCrwErS/vGThgjC4Wvaoq7AvCskiek3FK PdbR2a3/q5cslPdWFlKgRLf7cRV5dTeqpm0qUKtkFtEJxMTVkTivQ/wp2Au+Fkiwnxe7 /fRyfXz0qc2lt7m01vEfX1V3lJMBtl2uxeAIXSDELX7/WpHqs//h7lQxtfmM/c9bjspc rBY5R8bwdh7Mp4PQ0X+0SiAO2agY2kuNRQpcUnRHzjC2PkTnlQ6TfZGr1PAzbVv0oWkT NyJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=IlXCrQfZByTALRRqXC/JcTCA0eiLn3FOqhujHQfWn/g=; b=YiBFawAGIB27/hs4Nxn8BzVFNNPpt2uOkxTGKsyu+H8chdp5bEy818QuDmM7+4vc78 XzsKZNAtQ+bvh5IqVB0zSIq/+bJctC7QsCEa4DFq+ksHdSDLFpd7romVv8JOSykLaOgQ OnA2jRumIN2n7MtZjOGN7F4TNRefaCGZvmmu478ZzhifQCp96LWSIuH0UZyCpDYUrL9T kbP8LYt812OrrkfbjnrqRu/p22oS+1tyRUs1z6dCLHIEg6AtfxFkBXVcqzuWEbmmn8Mm O+e03AhLpmY/nRkYe9mWFiNn+N1Bk6a1JB+tZYgU+AdzamGMhopC+t8gV3LlPUxGeZU7 +fow== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ss2si3432786ejb.370.2021.04.11.20.05.03; Sun, 11 Apr 2021 20:05:30 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236584AbhDLCRE (ORCPT + 99 others); Sun, 11 Apr 2021 22:17:04 -0400 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:54488 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236572AbhDLCRD (ORCPT ); Sun, 11 Apr 2021 22:17:03 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=alimailimapcm10staff010182156082;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0UVCHCvs_1618193792; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UVCHCvs_1618193792) by smtp.aliyun-inc.com(127.0.0.1); Mon, 12 Apr 2021 10:16:43 +0800 From: Jiapeng Chong To: linus.walleij@linaro.org Cc: bgolaszewski@baylibre.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] gpio: mxs: remove useless function Date: Mon, 12 Apr 2021 10:16:21 +0800 Message-Id: <1618193781-35329-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: drivers/gpio/gpio-mxs.c:63:19: warning: kernel/sys_ni.cunused function 'is_imx28_gpio'. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpio/gpio-mxs.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/gpio/gpio-mxs.c b/drivers/gpio/gpio-mxs.c index dfc0c1e..524b668 100644 --- a/drivers/gpio/gpio-mxs.c +++ b/drivers/gpio/gpio-mxs.c @@ -60,11 +60,6 @@ static inline int is_imx23_gpio(struct mxs_gpio_port *port) return port->devid == IMX23_GPIO; } -static inline int is_imx28_gpio(struct mxs_gpio_port *port) -{ - return port->devid == IMX28_GPIO; -} - /* Note: This driver assumes 32 GPIOs are handled in one register */ static int mxs_gpio_set_irq_type(struct irq_data *d, unsigned int type) -- 1.8.3.1