0667bb6000
[ Upstream commit f1fae475f10a26b7e34da4ff2e2f19b7feb3548e ]
i2sbus_add_dev() is supposed to return the number of probed devices,
i.e. either 1 or 0. However, i2sbus_add_dev() has one error handling
that returns -ENODEV; this will screw up the accumulation number
counted in the caller, i2sbus_probe().
Fix the return value to 0 and add the comment for better understanding
for readers.
Fixes:
|
||
---|---|---|
.. | ||
i2sbus | ||
core.c | ||
Kconfig | ||
Makefile | ||
soundbus.h | ||
sysfs.c |