Commit b253f33d authored by Stefan Wahren's avatar Stefan Wahren Committed by popcornmix
Browse files

staging: vchiq_arm: Fix platform device unregistration



In error case platform_device_register_data would return an ERR_PTR
instead of NULL. So we better check this before unregistration.

Fixes: 37b7b308 ("staging/vc04_services: Register a platform device for the camera driver.")
Signed-off-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
parent eda93b3b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment