patch: new patch pattern platform_device_unregister_missing.cocci

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

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

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

add missing platform_device_unregister() when module exit

We have registered platform device when module init, and
need unregister it when module exit.

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

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

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

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