mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
regmap: Fix return code for stub regmap_get_device()
We return a pointer, not an int. Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
1 parent
fa2fbe4a98
commit
1d33dc6b0f
1 file changed
+1
-1
@@ -733,7 +733,7 @@ static inline struct regmap *dev_get_regmap(struct device *dev,
|
||||
static inline struct device *regmap_get_device(struct regmap *map)
|
||||
{
|
||||
WARN_ONCE(1, "regmap API is disabled");
|
||||
return -EINVAL;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user