Files
linux/drivers/gpu/drm
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
..
2023-05-15 16:15:25 +09:00
2018-03-22 09:54:47 +01:00
2016-09-19 15:04:15 +02:00
2016-09-21 13:33:50 +02:00
2018-08-14 19:41:01 -07:00
2016-09-06 13:56:41 -04:00
2016-09-19 13:57:38 +02:00
2016-09-19 13:57:38 +02:00
2016-09-19 13:57:38 +02:00
2018-08-14 19:40:39 -07:00