Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2584686lqo; Mon, 20 May 2024 09:59:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX8Tx1OYrWPTxLikmFWNOncNf8PDspZTN8k03a+/pmNTXOsqJQMoDF31gtv9iiUFAllU1DmPRNhTSElJ+NK27fWzk50QmXRsib1AJsjlw== X-Google-Smtp-Source: AGHT+IH93I1+E/Hj+itQ8tJqtkZiCzT1tr5oTREhYBnUlt5ccLUyUQxjOV8rV1Hw+RVV1XpyxKUv X-Received: by 2002:a05:6a21:3d85:b0:1af:6a15:6825 with SMTP id adf61e73a8af0-1afde1978d0mr37741890637.42.1716224383135; Mon, 20 May 2024 09:59:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716224383; cv=pass; d=google.com; s=arc-20160816; b=mWcD3psGeLF8vO4cwv7I6xRF7U9w0rIZ6U/lRG0Y5bVrLikGfl3M2zAU/aI2VPuCUg stEC3CD0KLYSQsGulvz5Zya2ul36OcFmiMUHu2e/Llvigg/LJ6r+yDM69ptVZudfW5Bm ZTKP9e1y3V3wXr62S868hLu1YFrCYQ/Tesaw1ZOkQjZ9h48QlyTmmt1EvijdZGHDP/H9 i7adjN8htC93hHmPwwxsIdycubVvBEgDzkmNf322/VIfjoM0G48iNuSZ1k3lzUzK/3ps 9fLqBxqS6fYrwsCy6dZgw/ndFBub6oc83lN62SwCHy6V1t+bJ/KnxH/LX7AWmTCvZ4wz bBCA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=YGfGKswgpm2ZS9lO5P6AH3l2tEGZjXPelfi8SHnPtgU=; fh=GniLUlLARbF/qswWg6dOxNfnnpwlJlRAymBhF1yYQ5g=; b=DnQRr/doeYtIT2dJ+CBHvpw0u6AGN6yPxmgInHfIzOYzA8WrpwzfoE2xKBtmvneLrn y2v5Yh/Cw/UadncypekgS0YDaCnEm5BnYCUwaauS58XO4UjSWSpaKHQrN6kgbEw7jFUi 5GelgWSjKMG078nLMOZ9eZjrdD3TKNbnkr92QgnxH1jtzY5xOnx1tO+SNFMG6ZWxdVXc H35IBObdMkomwuO5fw6ssx0uSXWjcOCg43EUyJ0mQ6aK5evBEIXMRfso3CH0OAuW5Cmo BRHchKLNAKU1xRt7NyYAqRhqAvhImftupveTHN69pib503NspGd+aSvs1EyxoqqCaj+f UKMw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=kaiser.cx); spf=pass (google.com: domain of linux-kernel+bounces-183983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183983-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-65721bd4d21si6554066a12.851.2024.05.20.09.59.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 09:59:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=kaiser.cx); spf=pass (google.com: domain of linux-kernel+bounces-183983-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183983-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C3186280F40 for ; Mon, 20 May 2024 16:59:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B8B81137C25; Mon, 20 May 2024 16:59:34 +0000 (UTC) Received: from akranes.kaiser.cx (akranes.kaiser.cx [152.53.16.207]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2905137C20; Mon, 20 May 2024 16:59:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=152.53.16.207 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716224374; cv=none; b=RSjiw3TgOIGEjNLGW5AgFvmcIVN/EZNkPhT3OB/eYBpD5WooFf61WuSHNE3C/TmixGXMhj56FGnw56EZI+oh/Dk15M/YxSB0s7TR2e5sUD5xBD5xh3SHYFZk5eofDH25SNHahlPvxR9b651dEvd+nvz31otoGgDfIYZ5m5VE+GM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716224374; c=relaxed/simple; bh=s2YGVwJxCN/d4PGiiaxIL+qR6SuliZtVQJxRKM7iKHY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=IQbvPPN3PN4pVvWr9NQPIfqEmCD0q32h8k/aH7dKRL5Xkp+2qEqfb2fH4TNOuRCTeK11fQi8qxK72/aEJZvzo9ewPH20t7nPhhSPvq0GIfWkni5yzMKHY9L4qx+k7FpdigAU8mITOACDWJDEzRYBXrdDwyx2HinTbAU8Npj8AV0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kaiser.cx; spf=pass smtp.mailfrom=kaiser.cx; arc=none smtp.client-ip=152.53.16.207 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kaiser.cx Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kaiser.cx Received: from dslb-084-059-234-031.084.059.pools.vodafone-ip.de ([84.59.234.31] helo=martin-debian-3.kaiser.cx) by akranes.kaiser.cx with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1s96Lx-000hmm-1i; Mon, 20 May 2024 18:59:13 +0200 From: Martin Kaiser To: Mark Brown Cc: Shawn Guo , linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH] spi: imx: remove empty cleanup function Date: Mon, 20 May 2024 18:59:06 +0200 Message-Id: <20240520165906.164906-1-martin@kaiser.cx> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Remove the empty spi_imx_cleanup function. It's ok if a driver does not set the controller->cleanup pointer, the caller does a NULL check. Signed-off-by: Martin Kaiser --- drivers/spi/spi-imx.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index f4006c82f867..cf0cb52946d2 100644 --- a/drivers/spi/spi-imx.c +++ b/drivers/spi/spi-imx.c @@ -1666,10 +1666,6 @@ static int spi_imx_setup(struct spi_device *spi) return 0; } -static void spi_imx_cleanup(struct spi_device *spi) -{ -} - static int spi_imx_prepare_message(struct spi_controller *controller, struct spi_message *msg) { @@ -1766,7 +1762,6 @@ static int spi_imx_probe(struct platform_device *pdev) controller->transfer_one = spi_imx_transfer_one; controller->setup = spi_imx_setup; - controller->cleanup = spi_imx_cleanup; controller->prepare_message = spi_imx_prepare_message; controller->unprepare_message = spi_imx_unprepare_message; controller->target_abort = spi_imx_target_abort; -- 2.39.2