spi: core: Propagate error code of add_uevent_var()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 26 Jul 2017 13:14:00 +0000 (16:14 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 26 Jul 2017 14:30:35 +0000 (15:30 +0100)
commit2856670f23a92ab72db850d73f30c0b4b6ba5a76
treea8b6e8c3c629021fac0df210f0c9305ac1bb3a72
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
spi: core: Propagate error code of add_uevent_var()

add_uevent_var() can fail, let caller know about this.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c