drm: atmel-hlcdc: remove useless pm_runtime_put_sync in probe
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 10 Feb 2015 15:23:00 +0000 (16:23 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 24 Feb 2015 10:45:11 +0000 (11:45 +0100)
Remove a useless pm_runtime_put_sync leading to unbalanced
usage_count.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reported-by: Sylvain Rochet <sylvain.rochet@finsecur.com>
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c

index 7320a6c6613f174c1776f75c6dcc832cf91f1ad8..c1cb17493e0d4e212821c832009012c2384c7143 100644 (file)
@@ -311,8 +311,6 @@ static int atmel_hlcdc_dc_load(struct drm_device *dev)
 
        pm_runtime_enable(dev->dev);
 
-       pm_runtime_put_sync(dev->dev);
-
        ret = atmel_hlcdc_dc_modeset_init(dev);
        if (ret < 0) {
                dev_err(dev->dev, "failed to initialize mode setting\n");