From patchwork Fri Oct 27 14:39:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 738687 Delivered-To: patch@linaro.org Received: by 2002:a5d:5101:0:b0:32d:baff:b0ca with SMTP id s1csp474002wrt; Fri, 27 Oct 2023 07:44:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHxnhz9mrtd8AMiUrrWo2DVSi2XFOwBkLIWcjgoZU9QTjZNg22pXOuJ2UT568UoQWFmbOXW X-Received: by 2002:a05:622a:1349:b0:403:f389:5793 with SMTP id w9-20020a05622a134900b00403f3895793mr3860160qtk.32.1698417880956; Fri, 27 Oct 2023 07:44:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698417880; cv=none; d=google.com; s=arc-20160816; b=UqFi+Obl8NA0xLQNZzooObgpFUTENZXnrbrDb/yL61aZ9YGMfqL9mPyxf0AYFWZmdw MVihkDewZDUIYMaSAvhxjWpRMMWF16rW4GZV5AnhvnHQIJPCp72NfPo2+JKTjxD6NulX /BFWyr83zg1klrwD8hM9INDpG9HSkXEQ6OlBbvzM95Zu9yPMDSB34lmS2oSVW6z7tvlb R2fGnyW/TtWVH5b/fUaC8WFkB8o9yduv6M3sT9FGUikaoCHDspbBR8REAlh4UI4yMGOO OMrbbBi9B2MGQnPkwGhRk8/qn4tdz8jrM54bHK471+1Zs3zwhLM9JyLXUp13HA7S7oY3 ZacQ== 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:to:from :dkim-signature; bh=7L+ZM2Ew3INynFGy53+roTgbFE4u6NxZeR9zzUy5oKQ=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=X5OVx1af/bbOtl2NQWrs2C/cVMmfZInofKRMmOaPomx8xX4RZI7RdPLch/QVXSumSA jL5c7PIbAMbwqgWDmjH8To9nF46k95rpHTmYvyj4FiCP9xFf3XbM1iA54z+uSu/bS4vN 6DkAI4PTVJ2IdLz3PtfN3bne8WJyJqYUWXxHZYNipZtj11yJb0fYvOy+UTmyMuYTeMwG gO/eYeshmhC+nXKTKbiHCtheyX7PhGwF8F5R9o9zGp6DDpfqCALLCY8mr2yZzFDxF/Nd MNoftDOT3CviRWyzmqA9YQmFDS0O/4qlWsFOujnJXSpwgyEfp4GRjnVulSldR37mCzfV SVSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lIzPy6tN; 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 v12-20020a05622a188c00b0041817f7086asi812221qtc.452.2023.10.27.07.44.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Oct 2023 07:44:40 -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=lIzPy6tN; 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 1qwO0s-0000aP-5w; Fri, 27 Oct 2023 10:40:38 -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 1qwO0J-0007Lh-PE for qemu-devel@nongnu.org; Fri, 27 Oct 2023 10:40:04 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qwO0E-0008AP-HO for qemu-devel@nongnu.org; Fri, 27 Oct 2023 10:40:03 -0400 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-32d9d8284abso1389366f8f.3 for ; Fri, 27 Oct 2023 07:39:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698417595; x=1699022395; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=7L+ZM2Ew3INynFGy53+roTgbFE4u6NxZeR9zzUy5oKQ=; b=lIzPy6tNEp7MFZB7PUr3MyJtYkQppuN/Bckrdql5Ln8lTxp/vpuV32+MY0B9LRwRxS PfZggdqShXiue/axLzq+kUXXT8T5YKertTXGskebjEOCTEF5fgsSRFe0szN3sDhHVBqR ehjpJaz3cvfI4bbwAYE79xkSG1D2PbBC64KG94cmReReTtziR4fnYxgouA4XoRiLKE2s epSRYYgg2HAW/Qxi7fm5URAC/pNH4BsCtgdDIMDPaaB3mJq4cRKbtcdEnkXPANM72lXi 7SOgUdmXzrc4vbcTx5z3oFdJZWa6c3CwRmm0UlFzRR5xNnt4NLEuHb8suQKbT+sP3ivw HYNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698417595; x=1699022395; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7L+ZM2Ew3INynFGy53+roTgbFE4u6NxZeR9zzUy5oKQ=; b=ocnq0BNfdJfrveJV/4oi5PsWDrPfN7WfSVinYTuADrxXtZtCfYf+qCdW7mqoyPRl7I I1F0ldwoT6Pb9lSSJuOjIS5cJ2uft1diBX4j9vrgNQxmo1db0CUTGoKcEWtawzXFUu8C eGcYWbxg2Zxkre7OIh3xh5IenMTo/zRAJBbBEqzJM5I0A6M+439jDVTfY3sFMBQQbg0F 6jyHALF0V+MYye5JaujnpLaw0iQHGsJHwy2oyAn6p9zBbbVmNBsbDRdb9XCQVU+GeuOx ZEbhtvcmsoM51OCNCpJB/e6sHPMateETatieG7Cv+MPafoYKaTcNVVtB4CsifrIkxQ4f 3yhA== X-Gm-Message-State: AOJu0Yx8RIVuy9WvZOGIoDgFLWfzybL42d8KNGVNaYNwJHDcabVosd9I y8EDgeORtqMmTUhJg2btFklnSkvVUSXEJTUj+cU= X-Received: by 2002:a5d:64a4:0:b0:320:bae:2dfd with SMTP id m4-20020a5d64a4000000b003200bae2dfdmr2907123wrp.5.1698417595037; Fri, 27 Oct 2023 07:39:55 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id e2-20020a5d5002000000b0031c6581d55esm1874123wrt.91.2023.10.27.07.39.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 07:39:54 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 23/41] hw/pcmcia/pxa2xx: Do not open-code sysbus_create_simple() Date: Fri, 27 Oct 2023 15:39:24 +0100 Message-Id: <20231027143942.3413881-24-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231027143942.3413881-1-peter.maydell@linaro.org> References: <20231027143942.3413881-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x436.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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 From: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-id: 20231020130331.50048-5-philmd@linaro.org Signed-off-by: Peter Maydell --- hw/pcmcia/pxa2xx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/pcmcia/pxa2xx.c b/hw/pcmcia/pxa2xx.c index e7264feb455..3d512a292c7 100644 --- a/hw/pcmcia/pxa2xx.c +++ b/hw/pcmcia/pxa2xx.c @@ -143,9 +143,7 @@ PXA2xxPCMCIAState *pxa2xx_pcmcia_init(MemoryRegion *sysmem, { DeviceState *dev; - dev = qdev_new(TYPE_PXA2XX_PCMCIA); - sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal); - sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, base); + dev = sysbus_create_simple(TYPE_PXA2XX_PCMCIA, base, NULL); return PXA2XX_PCMCIA(dev); }