diff options
author | Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com> | 2015-06-01 15:29:56 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-13 03:03:56 +0300 |
commit | d687b1fa672874bf2c745fc936bec2e1ed75a331 (patch) | |
tree | e16fed3bba65cddc3b22b356a65d234c568b079c /drivers/misc/sram.c | |
parent | b13365bbecae98d31862df48f61522634ed5837d (diff) | |
download | linux-d687b1fa672874bf2c745fc936bec2e1ed75a331.tar.xz |
misc: sram: bump error message level on unclean driver unbinding
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>
Diffstat (limited to 'drivers/misc/sram.c')
-rw-r--r-- | drivers/misc/sram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c index 0bfdfacee972..baada4761b35 100644 --- a/drivers/misc/sram.c +++ b/drivers/misc/sram.c @@ -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); |