[ Upstream commit0aab8e4df4] In case of_match_device cannot find a match, return -EINVAL to avoid NULL pointer dereference. Fixes:fa4191a609("leds: pca9532: Add device tree support") Signed-off-by: Kangjie Lu <kjlu@umn.edu> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com> Signed-off-by: Sasha Levin (Microsoft) <sashal@kernel.org>