]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - sound/ac97/bus.c
Merge tag 'for-linus-20181207' of git://git.kernel.dk/linux-block
[linux.git] / sound / ac97 / bus.c
index 7a0dfca03a57d5b4cd7cbb00d73da095aa076679..9f0c480489ef04384445b35f8786c020dfc9d7fa 100644 (file)
@@ -529,7 +529,7 @@ static int ac97_bus_remove(struct device *dev)
        int ret;
 
        ret = pm_runtime_get_sync(dev);
-       if (ret)
+       if (ret < 0)
                return ret;
 
        ret = adrv->remove(adev);
@@ -537,6 +537,8 @@ static int ac97_bus_remove(struct device *dev)
        if (ret == 0)
                ac97_put_disable_clk(adev);
 
+       pm_runtime_disable(dev);
+
        return ret;
 }