linux_dsm_epyc7002/drivers/gpu/drm/gma500
Dan Carpenter c4c8db5eb1 gma500: clean up error handling in init
[ Upstream commit 15ccc39b3aab667c6fa131206f01f31bfbccdf6a ]

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>
2021-03-04 11:37:36 +01:00
..
accel_2d.c
backlight.c
blitter.c
blitter.h
cdv_device.c
cdv_device.h
cdv_intel_crt.c drm/gma500: Use simple encoder 2020-04-02 14:16:44 +02:00
cdv_intel_display.c
cdv_intel_dp.c drm/gma500: fix double free of gma_connector 2020-12-30 11:52:55 +01:00
cdv_intel_hdmi.c drm/gma500: Use simple encoder 2020-04-02 14:16:44 +02:00
cdv_intel_lvds.c drm/gma500: Remove dead code 2020-04-21 09:02:29 +02:00
framebuffer.c drm/gma500: Constify static structs 2020-09-01 15:30:27 +02:00
framebuffer.h
gem.c drm/gma500: remove _unlocked suffix in drm_gem_object_put_unlocked 2020-05-19 22:31:32 +01:00
gem.h
gma_device.c
gma_device.h
gma_display.c drm/gma500: remove _unlocked suffix in drm_gem_object_put_unlocked 2020-05-19 22:31:32 +01:00
gma_display.h
gtt.c
gtt.h
intel_bios.c
intel_bios.h
intel_gmbus.c
intel_i2c.c
Kconfig
Makefile
mdfld_device.c drm: gma500: Convert to GPIO descriptors 2020-08-19 15:48:09 +02:00
mdfld_dsi_dpi.c drm: gma500: Convert to GPIO descriptors 2020-08-19 15:48:09 +02:00
mdfld_dsi_dpi.h
mdfld_dsi_output.c drm: gma500: Convert to GPIO descriptors 2020-08-19 15:48:09 +02:00
mdfld_dsi_output.h drm: gma500: Convert to GPIO descriptors 2020-08-19 15:48:09 +02:00
mdfld_dsi_pkg_sender.c
mdfld_dsi_pkg_sender.h
mdfld_intel_display.c drm/gma500: Remove dead code 2020-04-21 09:02:29 +02:00
mdfld_output.c
mdfld_output.h drm: gma500: Convert to GPIO descriptors 2020-08-19 15:48:09 +02:00
mdfld_tmd_vid.c drm/gma500: Use simple encoder 2020-04-02 14:16:44 +02:00
mdfld_tpo_vid.c drm/gma500: Use simple encoder 2020-04-02 14:16:44 +02:00
mid_bios.c
mid_bios.h
mmu.c
mmu.h
oaktrail_crtc.c
oaktrail_device.c
oaktrail_hdmi_i2c.c gma500: clean up error handling in init 2021-03-04 11:37:36 +01:00
oaktrail_hdmi.c drm/gma500: remove unused variable 'hdmi_ids' 2020-04-21 08:15:03 +02:00
oaktrail_lvds_i2c.c
oaktrail_lvds.c drm/gma500: Use simple encoder 2020-04-02 14:16:44 +02:00
oaktrail.h
opregion.c
opregion.h
power.c
power.h
psb_device.c
psb_device.h
psb_drv.c drm/gma500: Fix error return code in psb_driver_load() 2021-03-04 11:37:36 +01:00
psb_drv.h
psb_intel_display.c
psb_intel_drv.h drm: gma500: Convert to GPIO descriptors 2020-08-19 15:48:09 +02:00
psb_intel_lvds.c drm/gma500: Use simple encoder 2020-04-02 14:16:44 +02:00
psb_intel_modes.c
psb_intel_reg.h
psb_intel_sdvo_regs.h
psb_intel_sdvo.c drm/gma500: fix spelling mistake "pannel" -> "panel" 2020-08-10 14:15:30 +02:00
psb_irq.c drm/gma500: Fix out-of-bounds access to struct drm_device.vblank[] 2020-11-09 15:09:52 +01:00
psb_irq.h
psb_lid.c
psb_reg.h
tc35876x-dsi-lvds.c drm/gma500: Use simple encoder 2020-04-02 14:16:44 +02:00
tc35876x-dsi-lvds.h