linux/drivers/gpu/drm/gma500
Dan Carpenter 15ccc39b3a gma500: clean up error handling in init
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
2020-12-03 10:50:57 +01:00
..
accel_2d.c drm/gma500: Remove 2D accel code 2020-11-15 20:12:17 +01:00
backlight.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 335 2019-06-05 17:37:06 +02:00
blitter.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
blitter.h Linux 5.2-rc5 2019-06-19 12:07:29 +02:00
cdv_device.c drm/gma500: Remove 2D accel code 2020-11-15 20:12:17 +01:00
cdv_device.h Linux 5.2-rc5 2019-06-19 12:07:29 +02:00
cdv_intel_crt.c drm/gma500: Use simple encoder 2020-04-02 14:16:44 +02:00
cdv_intel_display.c drm/gma500: Convert to CRTC VBLANK callbacks 2020-02-13 13:08:13 +01:00
cdv_intel_dp.c drm/gma500: fix double free of gma_connector 2020-10-05 15:52:37 +02: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: Remove 2D accel code 2020-11-15 20:12:17 +01:00
framebuffer.h drm/gma500: Remove struct psb_fbdev 2019-11-25 11:19:31 +01:00
gem.c drm/gma500: Remove unused function psb_gem_get_aperture() 2020-11-09 10:00:02 +01:00
gem.h drm/gma500: Introduce GEM object functions 2020-09-25 09:20:30 +02:00
gma_device.c Linux 5.2-rc5 2019-06-19 12:07:29 +02:00
gma_device.h Linux 5.2-rc5 2019-06-19 12:07:29 +02:00
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 drm/gma500: Add page flip support on psb/cdv 2019-11-07 10:16:31 +01:00
gtt.c drm/gma500: Remove GTT roll support 2020-11-15 20:11:52 +01:00
gtt.h drm/gma500: Remove GTT roll support 2020-11-15 20:11:52 +01:00
intel_bios.c Linux 5.2-rc5 2019-06-19 12:07:29 +02:00
intel_bios.h drm/gma500/intel_bios.h: Replace zero-length array with flexible-array member 2020-03-06 11:40:53 +01:00
intel_gmbus.c drm/gma500: drop drmp.h include from all .c files 2019-05-22 14:13:40 +02:00
intel_i2c.c Linux 5.2-rc5 2019-06-19 12:07:29 +02:00
Kconfig
Makefile
mdfld_device.c drm/gma500: Remove 2D accel code 2020-11-15 20:12:17 +01: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 drm/gma500: drop drmp.h include from all .c files 2019-05-22 14:13:40 +02:00
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 Linux 5.2-rc5 2019-06-19 12:07:29 +02:00
mid_bios.h Linux 5.2-rc5 2019-06-19 12:07:29 +02:00
mmu.c Linux 5.2-rc5 2019-06-19 12:07:29 +02:00
mmu.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 288 2019-06-05 17:36:37 +02:00
oaktrail_crtc.c drm/gma500: fix memory disclosures due to uninitialized bytes 2019-10-22 10:59:36 +02:00
oaktrail_device.c drm/gma500: Remove 2D accel code 2020-11-15 20:12:17 +01:00
oaktrail_hdmi_i2c.c gma500: clean up error handling in init 2020-12-03 10:50:57 +01:00
oaktrail_hdmi.c drm/gma500: remove unused variable 'hdmi_ids' 2020-04-21 08:15:03 +02:00
oaktrail_lvds_i2c.c drm/gma500: drop drmp.h include from all .c files 2019-05-22 14:13:40 +02:00
oaktrail_lvds.c drm/gma500: Use simple encoder 2020-04-02 14:16:44 +02:00
oaktrail.h Linux 5.2-rc5 2019-06-19 12:07:29 +02:00
opregion.c
opregion.h
power.c
power.h drm/gma500: drop drmP.h from header files 2019-05-22 14:13:33 +02:00
psb_device.c drm/gma500: Remove 2D accel code 2020-11-15 20:12:17 +01:00
psb_device.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 335 2019-06-05 17:37:06 +02:00
psb_drv.c drm/gma500: Fix error return code in psb_driver_load() 2020-12-01 18:25:46 +01:00
psb_drv.h drm/gma500: Remove 2D accel code 2020-11-15 20:12:17 +01:00
psb_intel_display.c drm/gma500: Convert to CRTC VBLANK callbacks 2020-02-13 13:08:13 +01:00
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 Linux 5.2-rc5 2019-06-19 12:07:29 +02:00
psb_intel_reg.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 335 2019-06-05 17:37:06 +02:00
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: Convert to CRTC VBLANK callbacks 2020-02-13 13:08:13 +01:00
psb_irq.h drm/gma500: Convert to CRTC VBLANK callbacks 2020-02-13 13:08:13 +01:00
psb_lid.c Linux 5.2-rc5 2019-06-19 12:07:29 +02:00
psb_reg.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 335 2019-06-05 17:37:06 +02:00
tc35876x-dsi-lvds.c drm/gma500: Use simple encoder 2020-04-02 14:16:44 +02:00
tc35876x-dsi-lvds.h