]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/opp/of.c
iommu: Remove device link to group on failure
[mirror_ubuntu-bionic-kernel.git] / drivers / opp / of.c
index cb716aa2f44be9d2cad2ff9d06a0b71a9f4d6b1c..7961b155abffb8c4a5877e2f1bc2bfb572b834fb 100644 (file)
@@ -405,6 +405,7 @@ static int _of_add_opp_table_v2(struct device *dev, struct device_node *opp_np)
        /* There should be one of more OPP defined */
        if (WARN_ON(!count)) {
                ret = -ENOENT;
+               _dev_pm_opp_remove_table(opp_table, dev, false);
                goto put_opp_table;
        }