diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-15 18:44:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-15 18:44:58 -0400 |
commit | f2ec26a3d41c8a07861aed23bc8c8eb7d9445d62 (patch) | |
tree | 3bbc9892ea07df7f3ae8358e7fa11b280bc98b77 /drivers/base/regmap | |
parent | f5f28b894b14fb8d23b0d03d0f77e9a0ec7946b3 (diff) | |
parent | f2e055e7c9c6084bfbaa68701e52562acf96419e (diff) |
Merge tag 'regmap-v3.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap
Pull regmap fix from Mark Brown:
"Fix regmap crash for async operation on busless maps
This fixes a crash if something tries to do an asynchronous operation
on busless maps which was introduced during the merge window"
* tag 'regmap-v3.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
regmap: cache: bail in regmap_async_complete() for bus-less maps
Diffstat (limited to 'drivers/base/regmap')
-rw-r--r-- | drivers/base/regmap/regmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index 95920583e31e..e0d0c7d8a5c5 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c | |||
@@ -1853,7 +1853,7 @@ int regmap_async_complete(struct regmap *map) | |||
1853 | int ret; | 1853 | int ret; |
1854 | 1854 | ||
1855 | /* Nothing to do with no async support */ | 1855 | /* Nothing to do with no async support */ |
1856 | if (!map->bus->async_write) | 1856 | if (!map->bus || !map->bus->async_write) |
1857 | return 0; | 1857 | return 0; |
1858 | 1858 | ||
1859 | trace_regmap_async_complete_start(map->dev); | 1859 | trace_regmap_async_complete_start(map->dev); |