mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
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>
This commit is contained in:
parent
b13365bbec
commit
d687b1fa67
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ static int sram_remove(struct platform_device *pdev)
|
||||||
struct sram_dev *sram = platform_get_drvdata(pdev);
|
struct sram_dev *sram = platform_get_drvdata(pdev);
|
||||||
|
|
||||||
if (gen_pool_avail(sram->pool) < gen_pool_size(sram->pool))
|
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)
|
if (sram->clk)
|
||||||
clk_disable_unprepare(sram->clk);
|
clk_disable_unprepare(sram->clk);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue