Files
linux/drivers/gpu/drm/gma500
Dan Carpenter 81acda9ccb gma500: clean up error handling in init
[ Upstream commit 15ccc39b3a ]

The main problem with this error handling was that it didn't clean up if
i2c_add_numbered_adapter() failed.  This code is pretty old, and doesn't
match with today's checkpatch.pl standards so I took the opportunity to
tidy it up a bit.  I changed the NULL comparison, and removed the
WARNING message if kzalloc() fails and updated the label names.

Fixes: 1b082ccf59 ("gma500: Add Oaktrail support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/X8ikkAqZfnDO2lu6@mwanda
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-16 10:37:08 +09:00
..
2014-09-24 11:43:41 +10:00
2012-03-10 13:05:48 +00:00
2012-03-10 13:05:48 +00:00
2012-03-10 13:05:48 +00:00
2012-11-07 10:59:32 +10:00
2012-07-16 09:20:33 -07:00
2016-01-04 07:57:38 +01:00
2013-04-07 17:09:34 +02:00