]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/base/regmap/regmap.c
Merge tag 'regmap-v3.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie...
[mirror_ubuntu-artful-kernel.git] / drivers / base / regmap / regmap.c
index 95920583e31e6dfb5cd0ad18cd9a599e9e34e155..e0d0c7d8a5c527867fb4ba05f4f21e74c43fcff2 100644 (file)
@@ -1853,7 +1853,7 @@ int regmap_async_complete(struct regmap *map)
        int ret;
 
        /* Nothing to do with no async support */
-       if (!map->bus->async_write)
+       if (!map->bus || !map->bus->async_write)
                return 0;
 
        trace_regmap_async_complete_start(map->dev);