Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4168FC4338F for ; Mon, 26 Jul 2021 13:40:38 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B7FE860F46 for ; Mon, 26 Jul 2021 13:40:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B7FE860F46 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DF9FB83390; Mon, 26 Jul 2021 15:40:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="BbPA2i9u"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 79BE88338E; Mon, 26 Jul 2021 15:39:07 +0200 (CEST) Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8940683351 for ; Mon, 26 Jul 2021 15:35:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-ot1-x332.google.com with SMTP id 61-20020a9d0d430000b02903eabfc221a9so10050141oti.0 for ; Mon, 26 Jul 2021 06:35:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KrRI6JV7M+TnReI8tIPWFc9WixLtSkJVIJksN5JR+rE=; b=BbPA2i9uNviIu63xpWXdu1NYAhta9OG5HzHJBCJhHNwyyAMX2iut33+Z7mCr8afjRv OYAXkMW0jv8mvkrn8MlBdqZjuD7NBnJeBWKN3eVF14PD+GpNji0HgyDwLMBoL9AzsH+A ZM28QAU3wBWyOc1nmwFoPLB14uOoGdMNWm67c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KrRI6JV7M+TnReI8tIPWFc9WixLtSkJVIJksN5JR+rE=; b=fEF1zIdRLsKW+FWIlD+Qgj+FYfwSwSkQV/j9NgE1CkeR40iQwCX9rnhIsQv/x2NtyT ah2EWe47ldSwBP0SAUH+HfMXKRByJ6UrUA+9XALNMMYX3vpDQHBCZiCrvA3pm5TX905S 9P5hfSk9zeIq7/UmLVFb8YYap8KTVvSxn3FZXwlKgQhXAUKR8YIDDZYdKEWjTwATneH6 Rz+E4+KTHaMTaXYFTc7dQHMdrVwj0T0fHPlcEfE6dkXx8gLN8sSw09iAm6ZdRmCpM1YI SLDUvy/Tg++6TUUXKmdb9TVAmT42bb3qFsrjHTP5xnbaGYUQQu8Bay9Iro34trVL2BM1 /A9Q== X-Gm-Message-State: AOAM531lrjkq8LC36qT+Hrt22e3JDGDCC0N1LA+nA3Z7NB2cMBNR3naT 2TdUBmhdA8RTZrUmar+bz2mAos704WkRc02p X-Google-Smtp-Source: ABdhPJw/Hf1RWQnWLHzgXVuyZTFLftpwZGm+7iJlZRA7M1hhHyI4yop8uT6a5ndrwgoX4yKNm/kc/A== X-Received: by 2002:a9d:a34:: with SMTP id 49mr11658238otg.235.1627306520994; Mon, 26 Jul 2021 06:35:20 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id t141sm6591527oot.40.2021.07.26.06.35.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jul 2021 06:35:20 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH 25/33] pci: sata_sil: Drop DM_PCI checks Date: Mon, 26 Jul 2021 07:34:31 -0600 Message-Id: <20210726133440.634682-26-sjg@chromium.org> X-Mailer: git-send-email 2.32.0.432.gabb21c7263-goog In-Reply-To: <20210726133440.634682-1-sjg@chromium.org> References: <20210726133440.634682-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean We don't need these checks anymore since when PCI is enabled, driver model is always used. Drop them. Signed-off-by: Simon Glass --- drivers/ata/sata_sil.c | 8 -------- drivers/ata/sata_sil.h | 4 ---- 2 files changed, 12 deletions(-) diff --git a/drivers/ata/sata_sil.c b/drivers/ata/sata_sil.c index 7e4e97d803e..dda712f42cb 100644 --- a/drivers/ata/sata_sil.c +++ b/drivers/ata/sata_sil.c @@ -27,11 +27,7 @@ #include "sata_sil.h" -#ifdef CONFIG_DM_PCI #define virt_to_bus(devno, v) dm_pci_virt_to_mem(devno, (void *) (v)) -#else -#define virt_to_bus(devno, v) pci_virt_to_mem(devno, (void *) (v)) -#endif /* just compatible ahci_ops */ struct sil_ops { @@ -616,11 +612,7 @@ static int sil_init_sata(struct udevice *uc_dev, int dev) #else priv->sil_sata_desc[dev] = sata; priv->port_num = dev; -#ifdef CONFIG_DM_PCI sata->devno = uc_dev->parent; -#else - sata->devno = sata_info.devno; -#endif /* CONFIG_DM_PCI */ #endif sata->id = dev; sata->port = port; diff --git a/drivers/ata/sata_sil.h b/drivers/ata/sata_sil.h index a300c0c3887..bea4322c919 100644 --- a/drivers/ata/sata_sil.h +++ b/drivers/ata/sata_sil.h @@ -21,11 +21,7 @@ struct sil_sata { u16 pio; u16 mwdma; u16 udma; -#ifdef CONFIG_DM_PCI struct udevice *devno; -#else - pci_dev_t devno; -#endif int wcache; int flush; int flush_ext; -- 2.32.0.432.gabb21c7263-goog