]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/base/power/main.c
debug: use dev_WARN() rather than WARN_ON() in device_pm_add()
[linux-2.6-omap-h63xx.git] / drivers / base / power / main.c
index 273a944d4040e861afa6a1ea6c601264eec6c4a7..b0eb6afdd861387bca96a13ab7456acec64087b0 100644 (file)
@@ -83,7 +83,7 @@ void device_pm_add(struct device *dev)
                 * transition is in progress in order to avoid leaving them
                 * unhandled down the road
                 */
-               WARN_ON(true);
+               dev_WARN(dev, "Parentless device registered during a PM transaction\n");
        }
 
        list_add_tail(&dev->power.entry, &dpm_list);