commit | 689f535843ac2633b395cfc494446326d03efab6 | [log] [tgz] |
---|---|---|
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | Mon Aug 19 22:48:25 2019 +0200 |
committer | Wolfram Sang <wsa@the-dreams.de> | Thu Aug 29 20:38:11 2019 +0200 |
tree | 03f951a3784d58a0333a48f998c4a0539558b1b9 | |
parent | a55aa89aab90fae7c815b0551b07be37db359d76 [diff] |
i2c: make i2c_unregister_device() ERR_PTR safe We are moving towards returning ERR_PTRs when i2c_new_*_device() calls fail. Make sure its counterpart for unregistering handles ERR_PTRs as well. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>