Skip to content

Commit

Permalink
misc: sram: bump error message level on unclean driver unbinding
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vladimir Zapolskiy authored and Greg Kroah-Hartman committed Jun 13, 2015
1 parent b13365b commit d687b1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/sram.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d687b1f

Please sign in to comment.