i2c: mux: reg: wrong condition checked for of_address_to_resource return value
authorLukasz Gemborowski <lukasz.gemborowski@nokia.com>
Mon, 27 Jun 2016 10:57:47 +0000 (12:57 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 5 Jul 2016 15:33:49 +0000 (00:33 +0900)
commit22ebf00eb56fe77922de8138aa9af9996582c2b3
tree04bfdbabe11d51fb2c02bc2f293f65d67d93d0fb
parenteab09988e47f2b4322faa5ee1430d05714e59000
i2c: mux: reg: wrong condition checked for of_address_to_resource return value

of_address_to_resource return 0 on successful call but
devm_ioremap_resource is called only if it returns non-zero value

Signed-off-by: Lukasz Gemborowski <lukasz.gemborowski@nokia.com>
Reviewed-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
drivers/i2c/muxes/i2c-mux-reg.c
This page took 0.132765 seconds and 5 git commands to generate.