mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-20 04:21:14 +09:00
w1: master: tegra_w1: Hold the mutex around w1_setup as well
Change-Id: I4989ebd892e35e0fdd49bd529ac8bc4f54a8f15e Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
This commit is contained in:
committed by
Colin Cross
parent
8f3a4f8447
commit
cbcebda4a1
@@ -463,8 +463,8 @@ static int tegra_w1_resume(struct platform_device *pdev)
|
||||
struct tegra_device *dev = platform_get_drvdata(pdev);
|
||||
|
||||
/* TODO: Is this necessary? I would assume yes. */
|
||||
w1_setup(dev);
|
||||
mutex_lock(&dev->mutex);
|
||||
w1_setup(dev);
|
||||
dev->ready = true;
|
||||
mutex_unlock(&dev->mutex);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user