Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp255114rwd; Wed, 31 May 2023 22:59:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4SBcXDdYejJpXNBZJilG3qsPk4EsFqNpILmi8iAkaUHtumtINkWh/0hcB08xilpqzP86mY X-Received: by 2002:aa7:88cf:0:b0:63d:24d0:2c32 with SMTP id k15-20020aa788cf000000b0063d24d02c32mr10489135pff.33.1685599153880; Wed, 31 May 2023 22:59:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685599153; cv=none; d=google.com; s=arc-20160816; b=YMCTLUR+tchRtCmJC7bL8v35bm7r3P7//N2ZumgS0JmHrAkp9tr1hQWfU3uDN7MYAv 0PvEEcwRwJAOONxTzpDkAVmPXu2Rnn4tr/Om+y5pRoS0ufd0/eaeEH6BdobO7EeRRItV i4mKJuUPv7+4/8t4b1fOfXdme4jKgwLceQmzJFM5n/U/I4eadhapp4jVtb67URHldaRo m99OU371HYXhqmBirXWZlAL7hcbTwjLtw2+SIUoRLpTB92MfOJg9UkoLzFWU8ANbouAm Yz0hE6XtDTdhfrfNSVn2w0bSL5/tzKI9BBxpiOJi6M6KRH3pIUo9M6NBkZ92kbXHpfSi m0Qg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=y+tFOwGnvCdi8X4QhhgzSNJA5jm6cyNcwe8cwo1VMts=; b=grVees683OXpX09P0zPwfOZWIszg7TJ6KEkeMLtF8DQZJo9YZejpxM/IitCLsXQUvX hdXobW04FxumPcmdQ1m9c0n7wBmKRYFFYXvOs1rU49HohIx7YBmfQtnnfNYk1c7+oVXI Vw8O0iP2U96juEOwW/htIdujTGXT6xOYqR+EHog11KKzpY6FJ3W7Yi3e5UsB8zpCoTWO XDNLRXfyHzX2q8SWSaWLwX5+ykp8AKyACIvKcobuvWBGIearRcrE2f9eb3In2Qx8Rjpr 9jD3pEX/tQmH0YSyRqEWk5wE2aZFAq6NiD/gsDKp6iA/xy0ii7rZ4AzyHiGkWwUQ2K3z ks/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b=cQb3tKUQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b3-20020aa78ec3000000b006391322d3f8si4936951pfr.375.2023.05.31.22.59.01; Wed, 31 May 2023 22:59:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@maquefel.me header.s=mail header.b=cQb3tKUQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231759AbjFAFsE (ORCPT + 99 others); Thu, 1 Jun 2023 01:48:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231650AbjFAFrF (ORCPT ); Thu, 1 Jun 2023 01:47:05 -0400 Received: from forward100a.mail.yandex.net (forward100a.mail.yandex.net [178.154.239.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D6DD1AD; Wed, 31 May 2023 22:46:32 -0700 (PDT) Received: from mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1f:5e51:0:640:23ee:0]) by forward100a.mail.yandex.net (Yandex) with ESMTP id CA84046D03; Thu, 1 Jun 2023 08:46:29 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id pjGDMhnDduQ0-Nb8XSMqX; Thu, 01 Jun 2023 08:46:29 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1685598389; bh=y+tFOwGnvCdi8X4QhhgzSNJA5jm6cyNcwe8cwo1VMts=; h=Message-Id:Date:In-Reply-To:Cc:Subject:References:To:From; b=cQb3tKUQqQU70xbxwmnmHG4A8rwFZcyB9S41GD/gqX9V1JYWmr0e4eDLzjCRc3uhf in1wAxUUNe/s5ISLN4iPYu6wEn6nhKUU024TIpY4YMAyOjdHC0xUMb2g1JSUj84Nnx bi6bkoJVdtByTvFxiQFLSu1UfOuNn0TZMbBRMxgo= Authentication-Results: mail-nwsmtp-smtp-production-main-51.vla.yp-c.yandex.net; dkim=pass header.i=@maquefel.me From: Nikita Shubin To: Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Sergey Shtylyov , Damien Le Moal Cc: Nikita Shubin , Michael Peters , Kris Bahnsen , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 38/43] pata: cirrus: drop legacy pinctrl Date: Thu, 1 Jun 2023 08:45:43 +0300 Message-Id: <20230601054549.10843-20-nikita.shubin@maquefel.me> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20230424123522.18302-1-nikita.shubin@maquefel.me> References: <20230424123522.18302-1-nikita.shubin@maquefel.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Drop legacy acquire/release since we are using pinctrl for this now. Signed-off-by: Nikita Shubin --- drivers/ata/pata_ep93xx.c | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/drivers/ata/pata_ep93xx.c b/drivers/ata/pata_ep93xx.c index 8d363bc71342..88cf31000000 100644 --- a/drivers/ata/pata_ep93xx.c +++ b/drivers/ata/pata_ep93xx.c @@ -921,28 +921,18 @@ static int ep93xx_pata_probe(struct platform_device *pdev) void __iomem *ide_base; int err; - err = ep93xx_ide_acquire_gpio(pdev); - if (err) - return err; - /* INT[3] (IRQ_EP93XX_EXT3) line connected as pull down */ irq = platform_get_irq(pdev, 0); - if (irq < 0) { - err = irq; - goto err_rel_gpio; - } + if (irq < 0) + return irq; ide_base = devm_platform_get_and_ioremap_resource(pdev, 0, &mem_res); - if (IS_ERR(ide_base)) { - err = PTR_ERR(ide_base); - goto err_rel_gpio; - } + if (IS_ERR(ide_base)) + return PTR_ERR(ide_base); drv_data = devm_kzalloc(&pdev->dev, sizeof(*drv_data), GFP_KERNEL); - if (!drv_data) { - err = -ENXIO; - goto err_rel_gpio; - } + if (!drv_data) + return -ENXIO; drv_data->pdev = pdev; drv_data->ide_base = ide_base; @@ -1000,8 +990,6 @@ static int ep93xx_pata_probe(struct platform_device *pdev) err_rel_dma: ep93xx_pata_release_dma(drv_data); -err_rel_gpio: - ep93xx_ide_release_gpio(pdev); return err; } @@ -1013,7 +1001,6 @@ static int ep93xx_pata_remove(struct platform_device *pdev) ata_host_detach(host); ep93xx_pata_release_dma(drv_data); ep93xx_pata_clear_regs(drv_data->ide_base); - ep93xx_ide_release_gpio(pdev); return 0; } -- 2.37.4