[alsa-devel] [PATCH] ASoC: fsl: Fix error handling if platform_device_add fails

Tabi Timur-B04825 B04825 at freescale.com
Tue Sep 27 04:08:44 CEST 2011


Axel Lin wrote:
> Call platform_device_put() instead of platform_device_unregister() if
> platform_device_add() fails.

What's wrong with calling platform_device_unregister()?

-- 
Timur Tabi
Linux kernel developer at Freescale


More information about the Alsa-devel mailing list