mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 11:53:53 +00:00
platform_device_register_simple() returns error code as pointer when it fails. The return value should be checked by IS_ERR(). Cc: Abhay Salunke <[email protected]> Signed-off-by: Akinobu Mita <[email protected]> Cc: Matt Domsch <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>