From patchwork Thu Jun 1 05:45:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Shubin X-Patchwork-Id: 101744 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp77187vqr; Wed, 31 May 2023 23:02:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5u706qr27iOp7v9ajEG59XQpD3s5xXN+QVelvTHUKoNz+HkIupXl0p8UjnmiHbYwY/y3gM X-Received: by 2002:a05:6a20:7f81:b0:112:1e0d:14ae with SMTP id d1-20020a056a207f8100b001121e0d14aemr9638745pzj.7.1685599374832; Wed, 31 May 2023 23:02:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685599374; cv=none; d=google.com; s=arc-20160816; b=RE+mb4vFk6Wxucr1DnYlUOPJrFSkqj3AbM+9vWEiKkdHDgezsbVkFQ+/2szZVked4w dR0SlPHrzlVsQ5GtJ4WaSPdQN1swkjRg4SCTIxsF2hka7l0Kc/8SYSLlbzDeFu6V2ovx qneTYFsLaM4CqvYw7UCCaMOrFC7HDaj0OiMAf3/KrUE5rLJoVBzzcDzO+HoyIWICMM4w td0EsrJd0Ni3XxuAKyCv2m0lB/AYw9Y6QFLce1QHq1/dQgwvXpNlzwX42g7B+oVF7s8L EWBZVCVBrsp9isFtaWDRga6tJEaiB/aLfFMrgEcqDq421bh8hL5Wg3SRkd4nVlCyv3SK h1ag== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q5-20020aa78425000000b00643a2b0c6c8si1778237pfn.106.2023.05.31.23.02.40; Wed, 31 May 2023 23:02:54 -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 S231760AbjFAFsE (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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767479049836299950?= X-GMAIL-MSGID: =?utf-8?q?1767479049836299950?= Drop legacy acquire/release since we are using pinctrl for this now. Signed-off-by: Nikita Shubin Reviewed-by: Sergey Shtylyov --- 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; }