Skip to content

Commit 586d090

Browse files
prabhakarladdaeinki
authored andcommitted
drm/exynos: gsc: Use platform_get_irq() to get the interrupt
platform_get_resource(pdev, IORESOURCE_IRQ, ..) relies on static allocation of IRQ resources in DT core code, this causes an issue when using hierarchical interrupt domains using "interrupts" property in the node as this bypassed the hierarchical setup and messed up the irq chaining. In preparation for removal of static setup of IRQ resource from DT core code use platform_get_irq(). Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
1 parent be0a3b7 commit 586d090

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

drivers/gpu/drm/exynos/exynos_drm_gsc.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,6 @@ static int gsc_probe(struct platform_device *pdev)
12201220
struct gsc_driverdata *driver_data;
12211221
struct exynos_drm_ipp_formats *formats;
12221222
struct gsc_context *ctx;
1223-
struct resource *res;
12241223
int num_formats, ret, i, j;
12251224

12261225
ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL);
@@ -1275,13 +1274,10 @@ static int gsc_probe(struct platform_device *pdev)
12751274
return PTR_ERR(ctx->regs);
12761275

12771276
/* resource irq */
1278-
res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
1279-
if (!res) {
1280-
dev_err(dev, "failed to request irq resource.\n");
1281-
return -ENOENT;
1282-
}
1277+
ctx->irq = platform_get_irq(pdev, 0);
1278+
if (ctx->irq < 0)
1279+
return ctx->irq;
12831280

1284-
ctx->irq = res->start;
12851281
ret = devm_request_irq(dev, ctx->irq, gsc_irq_handler, 0,
12861282
dev_name(dev), ctx);
12871283
if (ret < 0) {

0 commit comments

Comments
 (0)