Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp988526pxf; Thu, 8 Apr 2021 18:56:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSxkRMzRFqJs6FQKLkQfFlQm9fBhRhD5QQh6SyXH4G63DMRHtsz8Jbs4k42X1HQbTgrqxJ X-Received: by 2002:a63:41c6:: with SMTP id o189mr10837615pga.118.1617933416301; Thu, 08 Apr 2021 18:56:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617933416; cv=none; d=google.com; s=arc-20160816; b=G6mne9OV8rMq+G0wdhMDr8oIHKhwJQL35soE7sHNe4TVl6OfB8c9AnvlhPhLaBWe2v SXVVI4kjgeqNtLKDcI5JQ3urfmqVN1+AtsSydqypHdKLI4dFLj3uuCZXbqDxVMOR2R2f fZvk20XATd5CxgKs8DnOaAQBfoagykXpOemfaDtU7PqWAujaZp6vSl6NZs7JkaEYSfpy iv23A/JWYFcxN9DBD4ii45zJleVIM7kcKVraMkQ15c5iAz7orRaYm0EXwqnQrxVVGhNz WSI7cQgxyTeevaaNo9cbb2+6SfLv2szhvXjuc9tx9+jqzaOf4Q2A3qX7hEbw+JL6Lyjy j7xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=wzN39tlAe9I95ccVVoF+AgkhQjGM56qk2U8U+Nf95xI=; b=ohNUnZC5rHJ6rafVmcK5Y7l/xK3/djMgcKO/e7zmOw7Y9avLAZcBrArBcCagAz0THH NyAZRFkgX2/w5RiJC6FhocTnu0Mt31Z23h9/m3LgiyORlKLS0sZDZMfaR4UOyspA+88i 7X+91TAqVgh72D6LHEyjtYHKkt+7/jYw+TISl/qOrymWNivc3Zzox0GLD3ShiJgaYDtZ 6vv8fVGxbzxTuYmtcj9zDJXHcW3hFqoG2PEmIN4ci59XraT4HuNc8s1P/mrCAX1TJDsv XgK3y9gUUlDuR4fjlGPGp6n74OQJ53AZhxywtqc0pi+vZy1ogAILtoqtD7UReDOxtCTM 3Hsg== 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=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 17si1372713pfw.63.2021.04.08.18.56.43; Thu, 08 Apr 2021 18:56:56 -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=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233006AbhDIB4V (ORCPT + 99 others); Thu, 8 Apr 2021 21:56:21 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:16850 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232426AbhDIB4U (ORCPT ); Thu, 8 Apr 2021 21:56:20 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4FGh4d4Gmwz9x8Z; Fri, 9 Apr 2021 09:53:53 +0800 (CST) Received: from huawei.com (10.67.174.78) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.498.0; Fri, 9 Apr 2021 09:55:57 +0800 From: Chen Lifu To: Viresh Kumar , Shiraz Hashim , Russell King CC: Chen Lifu , , , Subject: [PATCH -next] ARM: spear: Fix build error with CONFIG_ARCH_SPEAR3XX Date: Fri, 9 Apr 2021 09:55:15 +0800 Message-ID: <20210409015515.258653-1-chenlifu@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.174.78] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org commit 77f983a9df42 ("spi: pl022: Use GPIOs looked up by the core") deleted 'struct pl022_ssp_controller' member 'num_chipselect'. We get build error when CONFIG_ARCH_SPEAR3XX is set: arch/arm/mach-spear/spear3xx.c:42:3: error: 'struct pl022_ssp_controller' has no member named 'num_chipselect' 42 | .num_chipselect = 2, | ^~~~~~~~~~~~~~ arch/arm/mach-spear/spear3xx.c:42:20: warning: initialization of 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 42 | .num_chipselect = 2, | ^ Fix the issue by deleting the initialization of 'num_chipselect' in spear3xx.c. Fixes: 77f983a9df42 ("spi: pl022: Use GPIOs looked up by the core") Reported-by: Hulk Robot Signed-off-by: Chen Lifu --- arch/arm/mach-spear/spear3xx.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/arch/arm/mach-spear/spear3xx.c b/arch/arm/mach-spear/spear3xx.c index 8537fcffe5a8..f83321d5e353 100644 --- a/arch/arm/mach-spear/spear3xx.c +++ b/arch/arm/mach-spear/spear3xx.c @@ -30,16 +30,6 @@ struct pl022_ssp_controller pl022_plat_data = { .dma_filter = pl08x_filter_id, .dma_tx_param = "ssp0_tx", .dma_rx_param = "ssp0_rx", - /* - * This is number of spi devices that can be connected to spi. There are - * two type of chipselects on which slave devices can work. One is chip - * select provided by spi masters other is controlled through external - * gpio's. We can't use chipselect provided from spi master (because as - * soon as FIFO becomes empty, CS is disabled and transfer ends). So - * this number now depends on number of gpios available for spi. each - * slave on each master requires a separate gpio pin. - */ - .num_chipselect = 2, }; /* dmac device registration */