From patchwork Thu Oct 3 13:53:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 832388 Delivered-To: patch@linaro.org Received: by 2002:adf:8b52:0:b0:367:895a:4699 with SMTP id v18csp274361wra; Thu, 3 Oct 2024 06:54:34 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWe4L+vipM6GgAFkfdttduLetW7x7tgxifNlWLKlmUOCW0yJz0/6XYjKiaBK6cC/R4oldlYmQ==@linaro.org X-Google-Smtp-Source: AGHT+IGZnm8bOG+57oMozVycI+OKzX0eLjq88y1/B3DDw2e4THfzT1K+VA6ggjy3eGyrgoW4/Nyu X-Received: by 2002:a05:6214:4a01:b0:6b0:75bd:7fb with SMTP id 6a1803df08f44-6cb81b980d2mr105874236d6.40.1727963674056; Thu, 03 Oct 2024 06:54:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727963674; cv=none; d=google.com; s=arc-20240605; b=GZgHjEgshDsQYKR+5XnK0vfAoU4hB7YIDLTozW7CcqV8Exv2sz1RuqG89T+eE1eczO qtAqegIWXBy0wakjMD+Ia2OgPjFLA5j6Vn1DUannAq4slt9DzlaH/i9C0D90sJwyMYnT 34se1SlcwWDmL0b/0PfyosHPOmngd57Ikjv1usSkdKl7SUwi1RAkuC6HBkcYbnUYlvCz X3Wxs1IXtjL2NN6e5MKgYvwtL5HV1oXDI4OG5Y7Ldwhdsk/1X2FBdSbkTBL2lBEVeXPb awurmPXK+uCYAc0X84KBej3nE7KPi2mn4Q9E9a4tad+kWxualiCNXW91k9uw9vXVAEdf /e1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=Y21cd3Mlo1rSCOVF7OXO2uYDEWo70U3Lo9wLvPMq9f4=; fh=kpMd+PQKOyVPQq4Wza2uiydoIEA0wRnmNhsQKTslYo8=; b=IfjbTAgJjwEz65v/iPzNFBdmG+1znFP4oIjHEeMlMs7f+THJs4aDtZLrOVBLmADFXz zzKu2aSX7AUgANIy/+R4Ysg/idVa91J6SIX/K0eZTurSgtQF5vHBoBG7hEWA17mVHMC2 lhNtuT0wQaBqrXmRs1y7UCJlaJCvnE2oaFQKgCDRgB0xGE0B9ZVIjdNu5SJfYzYzg+aD wfViP1Y7vHfl6ctiplWCQMSpHe7/XQ29UJyceiGZII8GIyx4CncTe4JcWFGL+QuTViFS E5HFpvG9gTJciuWtO3dqmvDyg0ZygqyVku+MoBGUqvKlj2lipUfSYHlq0OmePcBVF7eR DwNg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=txncFebg; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-45d95256d9bsi8383961cf.10.2024.10.03.06.54.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 Oct 2024 06:54:34 -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=txncFebg; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1swMGo-0002FU-L8; Thu, 03 Oct 2024 09:53:30 -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 1swMGm-0002F4-U1 for qemu-devel@nongnu.org; Thu, 03 Oct 2024 09:53:29 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1swMGl-0001OA-4m for qemu-devel@nongnu.org; Thu, 03 Oct 2024 09:53:28 -0400 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-37cc84c12c2so586920f8f.3 for ; Thu, 03 Oct 2024 06:53:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727963605; x=1728568405; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Y21cd3Mlo1rSCOVF7OXO2uYDEWo70U3Lo9wLvPMq9f4=; b=txncFebg1qj+oesfbUlI0JoYhm0n5B4gjSdzdsK94OYpfeKX+KYHBwLAs0/5c0nV67 wRdP8iySPCG7CeTINf5drHTZGJV9KLgao98+lOHI7jRoMycMIZ/4I6nfqlkNZVlWDNVC Pxn0sakdu98GuEj0KuVHCBm6DxGWWf1Hw3OeiO6sPtZHbSb5BcP8GGP6HCIgLLtnUewH 03m5G2gScPJPUYw/n5xsDoG83Yo9+jzApP9ok5dh3d24Z3o0M/Pi+WM4QncA2RGsrbb9 JbTCYwrCiNm47tMRF/ZZqblCaUSt+vUDDikc2z7fDTwahrn3y/x0C3wl3cH05bj/TiVG 26OA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727963605; x=1728568405; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Y21cd3Mlo1rSCOVF7OXO2uYDEWo70U3Lo9wLvPMq9f4=; b=l2pxvyVON3Cvzhi1Oy3Un7yEbvRTzOPGg6qBjzyp6cTnZCXcJLlBph+Iur3tJ+ATE2 ZtsyOdiPBsmXA3HKgk5qMjJf4iCfVaCX7IZ7F8mjSD1FFvp41RHhK3GZHon3W4pENPUP rSxQlzgxU+lIlDn/332w1fxdwG8NEeLw7qVYo6i4qWIfoBy2iva/kLhmWHMO3rUTuv8o dpFe64kTquhmh5/hNhbSFdHuHl0AgcJE6l/AP9zXOa/a23hNTcJrqDv5rQRBtSarzd02 1pYEMatKhvWqfRsjCEWO1tMm+gIGrrZKEcbZpf1Cx237daeow4oNNaj4mVifKNnmHIdH a+LA== X-Forwarded-Encrypted: i=1; AJvYcCUmLAfrBiGiqlCyLNst08R059lpL5YAGTlQiywdXC6izhqZg9hy8yFjz31SROjNnpY4TSKJv8SjKd6H@nongnu.org X-Gm-Message-State: AOJu0YweFX2FlpuImAk4FqZFjub+u9GjT/Xg1Ff8Pi3pyMFIxtLtrJK9 raG8/VkMIhOTj7kuKjdRAwYclTixqZmgEEUkJHaMexSPq8CsdURGi2w8yzUJPwo= X-Received: by 2002:a05:6000:18a6:b0:36b:bb84:33e2 with SMTP id ffacd0b85a97d-37cfb9f9d0fmr4570817f8f.37.1727963605227; Thu, 03 Oct 2024 06:53:25 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42f79ead8d8sm45285905e9.19.2024.10.03.06.53.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Oct 2024 06:53:24 -0700 (PDT) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH] hw/intc/omap_intc: Remove now-unnecessary abstract base class Date: Thu, 3 Oct 2024 14:53:23 +0100 Message-Id: <20241003135323.1653230-1-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x430.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 The OMAP interrupt controller code used to have an omap-intc class and an omap2-intc class, which shared common code via the abstract class common-omap-intc. Now we have deleted omap2-intc, we don't need the separate abstract base class; fold int into omap-intc. Suggested-by: Philippe Mathieu-Daudé Signed-off-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé --- include/hw/arm/omap.h | 2 +- hw/intc/omap_intc.c | 13 +++---------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/include/hw/arm/omap.h b/include/hw/arm/omap.h index cf5f0219a2f..4d28f391fb4 100644 --- a/include/hw/arm/omap.h +++ b/include/hw/arm/omap.h @@ -59,7 +59,7 @@ int64_t omap_clk_getrate(omap_clk clk); void omap_clk_reparent(omap_clk clk, omap_clk parent); /* omap_intc.c */ -#define TYPE_OMAP_INTC "common-omap-intc" +#define TYPE_OMAP_INTC "omap-intc" typedef struct OMAPIntcState OMAPIntcState; DECLARE_INSTANCE_CHECKER(OMAPIntcState, OMAP_INTC, TYPE_OMAP_INTC) diff --git a/hw/intc/omap_intc.c b/hw/intc/omap_intc.c index a48e6fcd6d3..a98358d92e2 100644 --- a/hw/intc/omap_intc.c +++ b/hw/intc/omap_intc.c @@ -392,22 +392,15 @@ static void omap_intc_class_init(ObjectClass *klass, void *data) } static const TypeInfo omap_intc_info = { - .name = "omap-intc", - .parent = TYPE_OMAP_INTC, + .name = TYPE_OMAP_INTC, + .parent = TYPE_SYS_BUS_DEVICE, + .instance_size = sizeof(OMAPIntcState), .instance_init = omap_intc_init, .class_init = omap_intc_class_init, }; -static const TypeInfo omap_intc_type_info = { - .name = TYPE_OMAP_INTC, - .parent = TYPE_SYS_BUS_DEVICE, - .instance_size = sizeof(OMAPIntcState), - .abstract = true, -}; - static void omap_intc_register_types(void) { - type_register_static(&omap_intc_type_info); type_register_static(&omap_intc_info); }