Yang Yingliang 91ac4bf35a ARM: OMAP1: call platform_device_put() in error case in omap1_dm_timer_init()
[ Upstream commit 0414a100d6ab32721efa70ab55524540fdfe0ede ]

If platform_device_add() is not called or failed, it should call
platform_device_put() in error case.

Fixes: 97933d6ced60 ("ARM: OMAP1: dmtimer: conversion to platform devices")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Message-Id: <20220701094602.2365099-1-yangyingliang@huawei.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-11 16:43:32 +01:00
..
2018-07-02 04:09:35 -07:00
2012-10-31 15:37:14 -07:00
2015-07-28 13:58:13 +02:00
2018-12-31 17:27:54 -08:00
2012-10-31 15:37:14 -07:00
2012-10-31 15:37:14 -07:00