Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2474761pxj; Mon, 10 May 2021 04:01:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzE6QKccG96am8f+bwQbpBA8uskQMDE+P2umlNXcRLjKBy7GySMg21QNTht6Stgo32k8qtp X-Received: by 2002:a17:907:2095:: with SMTP id pv21mr24770341ejb.77.1620644466200; Mon, 10 May 2021 04:01:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620644466; cv=none; d=google.com; s=arc-20160816; b=wGFbBLumOJ+XcgKmbsYjGviQywlSqgRojNuDUtv9y/WTp+1+3F3yCFlq6BeCK8hhJG f0QFUhRhmq0zGqyzOIw4pPX3V78tEkwSqcCVddLX5P3I4C0pwKom+z/wraI3Z6DeW/vp y0oUvHlJzqPBbStPApsoR9gysRtCC+fYx+qTTzK3+fkPO6d+KrOl16bhRgbnbM+bQfQ4 fKBCMyNTZ3BB/uyqdPObSrkjBBiHyQoDhLHQDHiacQXS6hDHp5ya16WG0bAuLPbHepAz MRl7ILW5Uk3R6cLSqwf0XkvnVIDbTQTjmilIq1zUSzsbSv+keh1Pr/i+wUOSB7EN+KmI Of7g== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WgE4myhJig3S8yAbaUTMwFCwl3VNOKRxLZRwiKP5vIs=; b=QvfcNfspBkBcHETFvcgon1vI5el8VQc6VsrqXtUhHqSvK/UG9lFumw8LfjdVLZHbjY jjo+m/8NG/JiHssQ2cOqfvztbc+r+ja3DfoOYACBWpBPtBBoRD4cnhKMwHz05KWhl1o+ qX8qq77mdo54O03R6rX9Biy6fXjJX0Fy//nMYzfX7+/UPUw9uEtA83dJY3kpGltkDPHK oPXlOyBN98RT5nk6c5AmL/I7zzCkY6rthwGigzWHcYcCAgw8SPuLWng7sfS6DcbDxTgR r3BXB+rXOtoe1Xg5vVnghd++YFKw0hlaqYtCrcti2L7YCWSk2o86Ra0BiYSwX2Uiwr02 SOeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sGjDxzHT; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pg16si12341186ejb.269.2021.05.10.04.00.40; Mon, 10 May 2021 04:01:06 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sGjDxzHT; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233486AbhEJKyp (ORCPT + 99 others); Mon, 10 May 2021 06:54:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:59360 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232498AbhEJKoW (ORCPT ); Mon, 10 May 2021 06:44:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4B41161984; Mon, 10 May 2021 10:33:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620642792; bh=t6uuShaQBFm1A+tFPwZuHJ2zxR2QAMsD2HA7eO5/v58=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sGjDxzHTyBXoBQCG2c2gY3ISJWOiALmAvdEQw1Gkdz8IH7Tk8w1ih+lt/jYpMiCrm NvdEhliLmn7IZZAR08jj+GHBXxqQtYDj9spVjlCM1Uz9XuuC5sV3Oq55Jg8XwzmKH3 VtLRLY9a3NiIvVqpBl/lzcavMAvZEKl73bSs4BlI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, David Bauer , Mark Brown , Sasha Levin Subject: [PATCH 5.10 054/299] spi: ath79: remove spi-master setup and cleanup assignment Date: Mon, 10 May 2021 12:17:31 +0200 Message-Id: <20210510102006.665302459@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: David Bauer [ Upstream commit ffb597b2bd3cd78b9bfb68f536743cd46dbb2cc4 ] This removes the assignment of setup and cleanup functions for the ath79 target. Assigning the setup-method will lead to 'setup_transfer' not being assigned in spi_bitbang_init. Because of this, performing any TX/RX operation will lead to a kernel oops. Also drop the redundant cleanup assignment, as it's also assigned in spi_bitbang_init. Signed-off-by: David Bauer Link: https://lore.kernel.org/r/20210303160837.165771-2-mail@david-bauer.net Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- drivers/spi/spi-ath79.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/spi/spi-ath79.c b/drivers/spi/spi-ath79.c index 436327fb58de..98ace748cd98 100644 --- a/drivers/spi/spi-ath79.c +++ b/drivers/spi/spi-ath79.c @@ -156,8 +156,6 @@ static int ath79_spi_probe(struct platform_device *pdev) master->use_gpio_descriptors = true; master->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 32); - master->setup = spi_bitbang_setup; - master->cleanup = spi_bitbang_cleanup; master->flags = SPI_MASTER_GPIO_SS; if (pdata) { master->bus_num = pdata->bus_num; -- 2.30.2