misc: sram: bump error message level on unclean driver unbinding
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Mon, 1 Jun 2015 12:29:56 +0000 (15:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Jun 2015 00:03:56 +0000 (17:03 -0700)
Report an error level message to a user, if the driver is unbound
while there are still some pool allocations.

Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/sram.c

index 0bfdfacee972e0587c923115320752e03a4b7aa8..baada4761b35c93a08f25e89e16edf72f42f461d 100644 (file)
@@ -205,7 +205,7 @@ static int sram_remove(struct platform_device *pdev)
        struct sram_dev *sram = platform_get_drvdata(pdev);
 
        if (gen_pool_avail(sram->pool) < gen_pool_size(sram->pool))
-               dev_dbg(&pdev->dev, "removed while SRAM allocated\n");
+               dev_err(&pdev->dev, "removed while SRAM allocated\n");
 
        if (sram->clk)
                clk_disable_unprepare(sram->clk);
This page took 0.026852 seconds and 5 git commands to generate.