From patchwork Thu Oct 19 13:09:17 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: 735543 Delivered-To: patch@linaro.org Received: by 2002:adf:f0cd:0:b0:32d:baff:b0ca with SMTP id x13csp1507512wro; Thu, 19 Oct 2023 06:12:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEIv5djXLI9bHvx1vRYDmvETiAsxC8BmD748HTmmQ5K5qor1rDFr6Xl4mC9LV335LP1FC7A X-Received: by 2002:a2e:be9a:0:b0:2c5:292f:e1cb with SMTP id a26-20020a2ebe9a000000b002c5292fe1cbmr1792793ljr.34.1697721125278; Thu, 19 Oct 2023 06:12:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697721125; cv=none; d=google.com; s=arc-20160816; b=xYRm/WBdFOBZARyTxEs1VBfHvNkxGsE7d0ywUDF61dilZOAR/uwOo4rhC604duPWP/ NcAedihIxkH64hJYeXNjH79CfgQyKr7jFg38IuJgPcrfxBlMTh/9JFeS6Z/5Uq/CkjDo 2IcUIKjam2R4EN5IzqbX8UaMJGni6f6Ip7v8YX8TePTxfZ98WujE+pPj9KuAEV2udWlj yxr0FPq171nHjTRNTmWq/vjwzCrPrvulPOE97gobVPkABHDkh+wbwnJSUKEblVggn0mT F5kZYTrT5C6eHhsDz97U8zSrW7ylFNSXaB5Tbsy5V2vxEUSBoEL8RWhwZu77QTtk9VKe czyA== 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=AJfJ06RDafLRLEOQTU58KKvhb0KtBRhLr9Bft9JesEY=; fh=rYBZhAJdgCvxZRRcO2tKw9iXjHkAG8ZfVdmqU/2KeAE=; b=oOSTrqG+CsbvhyA4HPI0SM2HmiBzOUjIzlkqGK5UxjCO+uqVcGKZkG3AXbmhGdsuTu HUEmVHw64eHIRtKWKKsVvi8o2rDHY64Hr8dRc8Y85qyxuZXw8DYFabMJIYagOodt8z/f dZfPZpGJ9gf/sEcpAOzrE3zmKWJk8RQnLg5oHwHMlrAsAUDIwRHimwmy8LiFqUZIw2dH BcAdgpLqUve9mnqkSiNfZHfUETRNnPCZpe+jAvcuZUrvBj5kEXNW8Gr6R4V89R+jThhv HgpX5gOwC5FZ3YXad4YttCoOmsOaa08UYlEw6TxGjZUDAt/Zx5FqfnOi9cq4KVwfgea2 CJPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=myfnfk+7; 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 t7-20020a05600001c700b003296a1e4b89si2688209wrx.261.2023.10.19.06.12.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Oct 2023 06:12:05 -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=myfnfk+7; 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 1qtSmv-0005CT-17; Thu, 19 Oct 2023 09:10:09 -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 1qtSmU-0004Mf-Su for qemu-devel@nongnu.org; Thu, 19 Oct 2023 09:09:53 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtSmT-0007Qp-E4 for qemu-devel@nongnu.org; Thu, 19 Oct 2023 09:09:42 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-4084e49a5e5so233115e9.3 for ; Thu, 19 Oct 2023 06:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697720980; x=1698325780; 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=AJfJ06RDafLRLEOQTU58KKvhb0KtBRhLr9Bft9JesEY=; b=myfnfk+7mIjhUyLOgjIuqBOvgkunFxpV8p6QoSIsE90YbAFZjQFeoK3GFU26NwjV06 qbbVM3Y/lNOsLMHMbW6EgVam7EM96pzXNc/0y3G2D6L/yadkU6sGiTiQBe56oglF4kPL KMtxYaXQfEFC7ONn6Myg2yu+FSRFgiwX7sfwKZI3BRyHJcH6aG/Zmr1nmxxWD4WmuGvJ do6UaeI3q0Mo5/sbk6XPEN37VLkys/rtv9X9T0atMXnoP2f1sM1YsM+8H5VAf4tZ01P/ XyYqmQDxcHYaOmMBtZUVHZMkB6mlc2tNjxjxEF7CnslgO4YRXbUFh8WuqH/URYL77DrB Z7uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697720980; x=1698325780; 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=AJfJ06RDafLRLEOQTU58KKvhb0KtBRhLr9Bft9JesEY=; b=tBIWBJULFdip63imSSJea/wflarOIUb84eNkl2WpW+1Y+9uOX180IHp7kLGptDJUr7 JCrjpzgy4AtouZxzpJGq+xi+Ne+lewzl9vSAkTjfauBSj8NJZueX8QGCsLfaesmdZBTY FmetWzEpbpSYI+bhPdtWyqZfVzNLnq3olJBavJsOJVWJqZ0Tb9vYumNhMlu8O5jaUHhX ZJebrh1a54R5+b65PI2zp1AYxjyZREkFJKOG6iq57a8YbDYI42ftMuxVU/Nvcmn8rD0w hS4cWw5Hr0I3zJZ8IgSaLzXqT8hdx8Mlbv2w9YmrGA3sh4vcW5WrFlM5nyOl0JiZZCdG MlDQ== X-Gm-Message-State: AOJu0Yw5hPbVw5WZDRDmeY/iSsj5YCInQkkbrC9Gw3NTeg3WrozdRqxc no76QzHRaYgFeSD2xSV1EnpfjUeVotSgCfcbMK+FeQ== X-Received: by 2002:a05:600c:3591:b0:405:375d:b860 with SMTP id p17-20020a05600c359100b00405375db860mr1884089wmq.21.1697720979709; Thu, 19 Oct 2023 06:09:39 -0700 (PDT) Received: from m1x-phil.lan (176-131-216-177.abo.bbox.fr. [176.131.216.177]) by smtp.gmail.com with ESMTPSA id l32-20020a05600c1d2000b00402f713c56esm4494647wms.2.2023.10.19.06.09.38 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 19 Oct 2023 06:09:39 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , qemu-arm@nongnu.org, Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 2/9] hw/sd/pxa2xx: Do not open-code sysbus_create_simple() Date: Thu, 19 Oct 2023 15:09:17 +0200 Message-ID: <20231019130925.18744-3-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231019130925.18744-1-philmd@linaro.org> References: <20231019130925.18744-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=philmd@linaro.org; helo=mail-wm1-x32e.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=ham 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);