From patchwork Tue Jan 15 10:15:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liviu Dudau X-Patchwork-Id: 155656 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4723476jaa; Tue, 15 Jan 2019 02:40:04 -0800 (PST) X-Google-Smtp-Source: ALg8bN5U+ADUbfPBCiFJNv3uL2HWfcWIPCmh9OODu09iT5VrZe3MakoZ37b2oig5AxNjMUoc7Qlx X-Received: by 2002:a17:902:d01:: with SMTP id 1mr3420430plu.127.1547548804931; Tue, 15 Jan 2019 02:40:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547548804; cv=none; d=google.com; s=arc-20160816; b=LYRYe6ZB7AQthU1B54BXGRAFBsH0xOCfPbVLRxwgvhPsb+iqLZ0t5lHkNnmfRVM9eK aEtjOouchVuU5BOwRLEYadVzhuHa1iglODGoMqJI1Zms3k9dLtzyOPUbScttDyAHbJRK enz9zSogJfgpa3kiVn4yK+57xxUnCAqT9Dm36i7dLcCViNxtVyReM1E/HnXCBmarwA7+ f7mgzC/6iTXLLrzpLAo/Nd0InNsmLWv4r0BtfcAFJNNaAi5haIJmVsZ1yPLdEgLCz5vZ pHOWaernZrmtHDbEqFEEoYbVpEdu/gZWdiG81K01i5VkzLfIMrIoXErRgmEHQESMwSqQ QBvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :delivered-to; bh=Se4nFmVKFwf5WGToqZhmhdZ3vZBQIxaUK6s89+wJivo=; b=wchIlYb0/jpoYI2Qx8tw07G2zRWHm3vqEhPQrNSzgQOh+VWikUM5+6mkUKibaVm64n hcDSe7ftfrMkRaWKUiToo/mOAbjoj2QAqQk0Y1QvDflxPvviU6IYIcq353KIoc8M+OPr 5kwJbtfXr6cqcDPEUSW9vedatIuczx8hZHCoCLwVV9FDfRYAcinuFDAg5jjlQbpuaAZO X+zCUlOG0BV4O1jJu/XB2/eqhaR6GgnXsqP6VrGigy2oEdOS9yhLG7ZIhaTJzU11VdPR h53g/ulO9pl+XzcL3Qll+aTN28dmQYW1aH86KmdJ1IkmvbqCzaniBKoF/Gbpkfp1EW14 FVlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id g1si2953909pgj.34.2019.01.15.02.40.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 Jan 2019 02:40:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B72866EC78; Tue, 15 Jan 2019 10:40:03 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 1452 seconds by postgrey-1.36 at gabe; Tue, 15 Jan 2019 10:40:01 UTC Received: from cam-smtp0.cambridge.arm.com (unknown [217.140.106.52]) by gabe.freedesktop.org (Postfix) with ESMTPS id BE9746EC78 for ; Tue, 15 Jan 2019 10:40:01 +0000 (UTC) Received: from e110455-lin.cambridge.arm.com (e110455-lin.cambridge.arm.com [10.2.131.2]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id x0FAFiBw007271; Tue, 15 Jan 2019 10:15:44 GMT From: Liviu Dudau To: James Wang Subject: [PATCH] drm: arm/komeda: Remove IRQ parsing from initial series Date: Tue, 15 Jan 2019 10:15:44 +0000 Message-Id: <20190115101544.8653-1-Liviu.Dudau@arm.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , Liviu Dudau , LKML , DRI devel Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The initial series is only introducing the basic components and not implementing IRQ handling. Remove the left over code that touches IRQs until the proper implementation is introduced in a later series. Signed-off-by: Liviu Dudau Reviewed-by: James Qian Wang (Arm Technology China) Reviewed-by: James Qian Wang (Arm Technology China) --- drivers/gpu/drm/arm/display/komeda/komeda_dev.c | 5 ----- drivers/gpu/drm/arm/display/komeda/komeda_dev.h | 3 --- drivers/gpu/drm/arm/display/komeda/komeda_kms.c | 4 +--- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_dev.c b/drivers/gpu/drm/arm/display/komeda/komeda_dev.c index 84fdf707f2107..16f4e72abc1a3 100644 --- a/drivers/gpu/drm/arm/display/komeda/komeda_dev.c +++ b/drivers/gpu/drm/arm/display/komeda/komeda_dev.c @@ -59,11 +59,6 @@ static int komeda_parse_dt(struct device *dev, struct komeda_dev *mdev) return PTR_ERR(clk); mdev->mclk = clk; - mdev->irq = platform_get_irq(pdev, 0); - if (mdev->irq < 0) { - DRM_ERROR("could not get IRQ number.\n"); - return mdev->irq; - } for_each_available_child_of_node(np, child) { if (of_node_cmp(child->name, "pipeline") == 0) { diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_dev.h b/drivers/gpu/drm/arm/display/komeda/komeda_dev.h index a0bf7050037a0..0f77dead6a237 100644 --- a/drivers/gpu/drm/arm/display/komeda/komeda_dev.h +++ b/drivers/gpu/drm/arm/display/komeda/komeda_dev.h @@ -81,9 +81,6 @@ struct komeda_dev { /** @mck: HW main engine clk */ struct clk *mclk; - /** @irq: irq number */ - u32 irq; - int n_pipelines; struct komeda_pipeline *pipelines[KOMEDA_MAX_PIPELINES]; diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_kms.c b/drivers/gpu/drm/arm/display/komeda/komeda_kms.c index f41b20235130b..3fc096d3883e8 100644 --- a/drivers/gpu/drm/arm/display/komeda/komeda_kms.c +++ b/drivers/gpu/drm/arm/display/komeda/komeda_kms.c @@ -142,12 +142,10 @@ struct komeda_kms_dev *komeda_kms_attach(struct komeda_dev *mdev) err = drm_dev_register(drm, 0); if (err) - goto uninstall_irq; + goto cleanup_mode_config; return kms; -uninstall_irq: - drm_irq_uninstall(drm); cleanup_mode_config: drm_mode_config_cleanup(drm); free_kms: