patch: new patch pattern uart_unregister_driver_missing.cocci

missing uart_unregister_driver() on error in {{function}}

Add the missing uart_unregister_driver() before return
from {{function}} in the error handling case.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
patch: new patch pattern platform_device_put_missing.cocci

add missing platform_device_put() on error in {{function}}

Add the missing platform_device_put() before return from
{{function}} in the error handling case.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>