浏览代码

regmap: Fix return code for stub regmap_get_device()

We return a pointer, not an int.

Signed-off-by: Mark Brown <broonie@linaro.org>
Mark Brown 11 年之前
父节点
当前提交
1d33dc6b0f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/linux/regmap.h

+ 1 - 1
include/linux/regmap.h

@@ -733,7 +733,7 @@ static inline struct regmap *dev_get_regmap(struct device *dev,
 static inline struct device *regmap_get_device(struct regmap *map)
 static inline struct device *regmap_get_device(struct regmap *map)
 {
 {
 	WARN_ONCE(1, "regmap API is disabled");
 	WARN_ONCE(1, "regmap API is disabled");
-	return -EINVAL;
+	return NULL;
 }
 }
 
 
 #endif
 #endif