Skip to content
Commit 57ddb294 authored by Dave Stevenson's avatar Dave Stevenson Committed by popcornmix
Browse files

staging: vchiq_arm: Unify the unload handling of platform devs



A helper function vchiq_register_child was added to deal with
adding the platform devices. This returns NULL on failure, and
that is assigned to the struct platform_device. There is
therefore no way for remove to encounter an error pointer, so
checking for IS_ERR() is redundant.

Signed-off-by: default avatarDave Stevenson <dave.stevenson@raspberrypi.com>
parent 22d4f0b8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment