Skip to content

Commit

Permalink
drm: arcpgu: Fix module unload
Browse files Browse the repository at this point in the history
At module unload we are expecting a struct drm_device but at
probing we are not setting it right. Fix this and correct the
arcpgu module unload.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Fixes: 0c4250e7b15e ("drm: Add support of ARC PGU display controller")
Cc: Carlos Palminha <palminha@synopsys.com>
Cc: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Dave Airlie <airlied@gmail.com>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
  • Loading branch information
Jose Abreu authored and Alexey Brodkin committed Aug 2, 2017
1 parent a8f8fb2 commit 0c43ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/arc/arcpgu_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static int arcpgu_load(struct drm_device *drm)
return -ENODEV;
}

platform_set_drvdata(pdev, arcpgu);
platform_set_drvdata(pdev, drm);
return 0;
}

Expand Down

0 comments on commit 0c43ff5

Please sign in to comment.