Commit 20dbeaf0 authored by Russell King's avatar Russell King

[ARM] sa1111: don't reference dev->power.saved_state if CONFIG_PM is unset

parent 38838b73
...@@ -950,8 +950,10 @@ static int sa1111_remove(struct device *dev) ...@@ -950,8 +950,10 @@ static int sa1111_remove(struct device *dev)
__sa1111_remove(sachip); __sa1111_remove(sachip);
dev_set_drvdata(dev, NULL); dev_set_drvdata(dev, NULL);
#ifdef CONFIG_PM
kfree(dev->power.saved_state); kfree(dev->power.saved_state);
dev->power.saved_state = NULL; dev->power.saved_state = NULL;
#endif
} }
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment