From patchwork Fri Oct 20 13:03:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 736237 Delivered-To: patch@linaro.org Received: by 2002:adf:dd81:0:b0:32d:baff:b0ca with SMTP id x1csp287848wrl; Fri, 20 Oct 2023 06:05:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGaDALw6RWKsBOxskrEE773zXn1f/qlzmmqYAAKKWqGKWiZH23/SLyknjjOH05wxbm8bJFA X-Received: by 2002:a05:620a:1103:b0:778:930c:1e09 with SMTP id o3-20020a05620a110300b00778930c1e09mr1872372qkk.15.1697807111087; Fri, 20 Oct 2023 06:05:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697807111; cv=none; d=google.com; s=arc-20160816; b=mELp1WxhTc7Lg6jmlndb6aPZZnfV70dbo80Z1tFMoIuQYIKMgC3rgMGdFzddTsVc6t m1Wqa+QlqxHt/7RnR1hV5kDaoFlM3RoiXYWRtQ/EmGXEpoYiWRiPwnHwIGtNo10Z4kjY ymYBOgjDR4hQIaMxptpwYS0fJNkHmaOS51YgGpplI91D+wK3wrEINUQfLVeU5WbcGOVO FCvm+lRKLC5opy8S3YpI83EYS9tnm2Jb4sdZBF4Annj85oOR4U43mGLaf6waR1/DphSr Qc8UcnItm4xlQ4LVSvuSR8Pgn0/igYXz84JZ5/zXgbsXluXeFEPw4DXFqdBkPP/k2QAO M/dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zkM/85hWmZ9SV/FNcYSH0O2+Ai96FulzN3LwQBfEAtk=; fh=QWGggua+3ufs1S3QlzhTWcDhlhc7bBCtXi/Y+/UuB8A=; b=0fYC4GuWq0InNCWxiljpnEFvxV0TaNlzQh+rVwPNLnK8J0AyNATmIFUgo1OijQ6EIg /liWaikx4iO9d10ZyMofq8pVb0kSjY1AHxnjxTJiiAy0pDolqgygf6PYXHvxx4g05RTv 4sM+lnwTvdmxhk/DpGDLlfVQQk8xW5WzIics5uESKZk3I8PlT0mJoWJmblxhEDx2PTs9 o67HrD+gEiF4MtTTnt7mTuCXEx6PGRuXbm7HRzG8sCNp60BDLC/ZgJV0GVxelyodxwOz AAszwXY5ZP3uo+EDVdspR5UzKHl0B/RX7rN0oyalqOfnCbVuFmGeHN2qUsGWVTTUpHEO Z1sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fz0NQGU9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id i1-20020a05620a404100b0077428b66050si1338536qko.173.2023.10.20.06.05.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Oct 2023 06:05:11 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fz0NQGU9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtpAP-0000Q0-OZ; Fri, 20 Oct 2023 09:03:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtpAM-0000H4-LL for qemu-devel@nongnu.org; Fri, 20 Oct 2023 09:03:50 -0400 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtpAK-0005I5-M8 for qemu-devel@nongnu.org; Fri, 20 Oct 2023 09:03:50 -0400 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-9adb9fa7200so177212166b.0 for ; Fri, 20 Oct 2023 06:03:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697807026; x=1698411826; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zkM/85hWmZ9SV/FNcYSH0O2+Ai96FulzN3LwQBfEAtk=; b=fz0NQGU9471iYg4GO3VbOIPLGT9uobXl9GyUpEDQYX6fPwUXO9wWJx5rHb9iIZj2/a 7t8L+KCAhofo0UmDlkanyNd6JhZxUM6ag+rrYfivzUpSwrPz4vF7jiCQMhPIhbmnMMc9 lSlvHUkKPmQGt/1ditwzusqn363BvpA1aiKv1xH5ZUskJJ/DwBL474XZ4l5Qxj+Kk0qF a3/G4Em1s9p/s4A7Nd7MgWHyF+7xWJRsQ+RQyWJ9mbQwOaK4WScHBy30MKF1B7hFZos3 YmKBcogPNcUJl7RZK8nns6di5Z5G0Jko2I1siSeevHn9suBhC4FsdsjWbzJgwI7y0P71 5ZSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697807026; x=1698411826; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zkM/85hWmZ9SV/FNcYSH0O2+Ai96FulzN3LwQBfEAtk=; b=PT8DnIn/w4tNdl02eqsRaK8Kj1gvB8gGLzP8KYTbArP3CTHrzhr+/7oE/y+7Hu4Qv7 l3xqkWQHNJ3N3NEJhhqV/vdaV+m1Y+/F2oRY1lVgDp5hRgscKZAso2zei5Ny44zWCwVQ 4MuHi7DNB2HDS5+bUrNpbHu2a9XDRTpQjxYK53iZfspp1ijdnKzIQzo1zQ/Y3Nrjf/oL tl+VNZRZfCdtVOTzqFBxmkJZcmVOPhHuwHk+V7aVjTI/a9VG8OhdvqndXa6EditCNa3L RoCmRZ8mDmsJLH0VOADJvipv3d5E7F2KpLooizddgpmIs9GE0OYltJrqGa3k2jbCc42L 25Cw== X-Gm-Message-State: AOJu0YzOS0LRy5bwsqv3NCOOgOmRZkFeocP+gHfr4khTNHlo8BDxrkKt ZQabrYtS1A80b7eRA7ny4nN82rrbnZnmXb4W40I= X-Received: by 2002:a17:907:868f:b0:9ad:e3fd:d46c with SMTP id qa15-20020a170907868f00b009ade3fdd46cmr4254879ejc.10.1697807025923; Fri, 20 Oct 2023 06:03:45 -0700 (PDT) Received: from m1x-phil.lan (tbo33-h01-176-171-212-97.dsl.sta.abo.bbox.fr. [176.171.212.97]) by smtp.gmail.com with ESMTPSA id lg15-20020a170906f88f00b009ae587ce135sm1452393ejb.223.2023.10.20.06.03.44 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 20 Oct 2023 06:03:45 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , Thomas Huth , qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v3 2/9] hw/sd/pxa2xx: Do not open-code sysbus_create_simple() Date: Fri, 20 Oct 2023 15:03:23 +0200 Message-ID: <20231020130331.50048-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231020130331.50048-1-philmd@linaro.org> References: <20231020130331.50048-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62a; envelope-from=philmd@linaro.org; helo=mail-ej1-x62a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth --- hw/sd/pxa2xx_mmci.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/hw/sd/pxa2xx_mmci.c b/hw/sd/pxa2xx_mmci.c index 9f7a880bac..4749e935d8 100644 --- a/hw/sd/pxa2xx_mmci.c +++ b/hw/sd/pxa2xx_mmci.c @@ -479,13 +479,8 @@ PXA2xxMMCIState *pxa2xx_mmci_init(MemoryRegion *sysmem, qemu_irq irq, qemu_irq rx_dma, qemu_irq tx_dma) { DeviceState *dev; - SysBusDevice *sbd; - dev = qdev_new(TYPE_PXA2XX_MMCI); - sbd = SYS_BUS_DEVICE(dev); - sysbus_realize_and_unref(sbd, &error_fatal); - sysbus_mmio_map(sbd, 0, base); - sysbus_connect_irq(sbd, 0, irq); + dev = sysbus_create_simple(TYPE_PXA2XX_MMCI, base, irq); qdev_connect_gpio_out_named(dev, "rx-dma", 0, rx_dma); qdev_connect_gpio_out_named(dev, "tx-dma", 0, tx_dma);