chameleon_parse_gdd() may fail for different reasons and end upReviewed-by: Yang Yingliang <yangyingliang@xxxxxxxxxx>
in the err tag. Make sure we at least make sure we always free
the mcb_device allocated with mcb_alloc_dev().
If mcb_device_register() fails, make sure to give up the reference
in the same place the device was added.
Fixes: 728ac3389296 ("mcb: mcb-parse: fix error handing in chameleon_parse_gdd()")
Reviewed-by: Jose Javier Rodriguez Barbarin <JoseJavier.Rodriguez@xxxxxxxxxx>
Signed-off-by: Jorge Sanjuan Garcia <jorge.sanjuangarcia@xxxxxxxxxx>