56ee1e parent 12276efcc85f3108174893bff8878e0dc655b066 author Sven Wegener 1228291973 +0000 committer Richard Purdie 1231418338 +0000 leds: leds-pca9532 - fix memory leak and properly handle errors When the registration fails, we need to release the memory we allocated. Also we need to save the error from led_classdev_register and propagate it up, else we'll return success, even if we failed. Signed-off-by: Riku Voipio Signed-off-by: Richard Purdie ØìÇË–