drm/exynos: more cleanup with super device support
Subsystems (5)
Inki Dae
maintainerv3 cover drm/exynos: more cleanup with super device support
This patch series cleans up exynos drm framework and kms sub drivers using the component framework[1]
[1] http://lists.freedesktop.org/archives/dri-devel/2014-January/051249.html
Previous patches,
RFC: http://comments.gmane.org/gmane.comp.video.dri.devel/101200
v1: http://lists.freedesktop.org/archives/dri-devel/2014-March/056387.html
v2: http://www.spinics.net/lists/dri-devel/msg56372.html
Changelog v3:
- Add a patch for separating dpi from fimd
- Add legacy dt binding support
- Add more cleanup patches
Thanks,
Inki Dae
Andrzej Hajda (1):
drm/exynos: separate dpi from fimd
Inki Dae (8):
drm/exynos: add super device support
drm/exynos: dpi: fix hotplug fail issue
ARM: dts: exynos4210-universal: add super device node for exynos drm
ARM: dts: exynos4210-trats: add super device node for exynos drm
ARM: dts: exynos4412-trats2: add super device node for exynos drm exynos/drm: add DT bindings
drm/exynos: fix comment to exynos_drm_device_subdrv_prove call drm/exynos: modify goto labels to meaningful names
.../bindings/drm/exynos/samsung-exynos-drm.txt | 32 ++ arch/arm/boot/dts/exynos4210-trats.dts | 5 + arch/arm/boot/dts/exynos4210-universal_c210.dts | 5 + arch/arm/boot/dts/exynos4412-trats2.dts | 5 + drivers/gpu/drm/exynos/exynos_dp_core.c | 45 +-- drivers/gpu/drm/exynos/exynos_drm_core.c | 216 +++----------- drivers/gpu/drm/exynos/exynos_drm_crtc.c | 17 ++ drivers/gpu/drm/exynos/exynos_drm_crtc.h | 4 + drivers/gpu/drm/exynos/exynos_drm_dpi.c | 51 ++-- drivers/gpu/drm/exynos/exynos_drm_drv.c | 313 +++++++++++++------- drivers/gpu/drm/exynos/exynos_drm_drv.h | 69 ++--- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 110 ++++--- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 74 +++-- drivers/gpu/drm/exynos/exynos_drm_vidi.c | 101 +++++-- drivers/gpu/drm/exynos/exynos_hdmi.c | 59 ++-- drivers/gpu/drm/exynos/exynos_mixer.c | 54 +++- 16 files changed, 675 insertions(+), 485 deletions(-) create mode 100644 Documentation/devicetree/bindings/drm/exynos/samsung-exynos-drm.txt
Signature · 1 line
1.7.9.5
Inki Dae
maintainerPATCH v5 1/9 drm/exynos: add super device support
This patch adds super device support to bind sub drivers using device tree.
For this, you should add a super device node to each machine dt files like belows,
In case of using MIPI-DSI,
display-subsystem {
compatible = "samsung,exynos-display-subsystem";
ports = <&fimd>, <&dsi>;
};In case of using DisplayPort,
display-subsystem {
compatible = "samsung,exynos-display-subsystem";
ports = <&fimd>, <&dp>;
};In case of using Parallel panel,
display-subsystem {
compatible = "samsung,exynos-display-subsystem";
ports = <&fimd>;
};And if you don't add connector device node to ports property, default parallel panel driver, exynos_drm_dpi module, will be used.
ports property can have the following device nodes,
fimd, mixer, Image Enhancer, MIPI-DSI, eDP, LVDS Bridge, or HDMI
With this patch, we can resolve the probing order issue without some global lists. So this patch also removes the unnecessary lists and stuff related to these lists.
Previous RFC patch,
http://www.spinics.net/lists/dri-devel/msg54671.html
Changelog since RFC patch:
- Register sub drivers and probe them at load(). In case of non sub drivers, sub driver probe is needed.
- Enable runtime pm at fimd_probe() instead of fimd_bind(). runtime pm should be enabled before iommu device is attached to fimd device.
- Do not return an error with component_master_add fail.
- Remove super device support from mipi dsi driver which was in RFC.
- Add super device support to parallel driver.
Changelog v2:
- Add super device support to mipi dsi driver.
- Bind fimd driver only in case that a drm_panel for parallel panel driver is added to panel_list of drm_panel module.
- Change super node name to 'display-subsystem'
. 'exynos-drm' is specific to Linux so change it to generic name.
- Change propery name of super node to 'ports'
. crtcs and connectors propery names are also specific to Linux so
change them to generic name.
Changlog v3:
- Do not probe/remove dpi module if fimd node has no port node.
Changelog v4:
- Move some codes for getting resources from each bind function to each probe function.
. if -EPROBE_DEFER is returned at bind context, components will be
bound and unbound repeatedly by deferred probe feature.
Changelog v5:
- Return error only in case that there is no any compoment attached to master.
- Add legacy dt binding support
- Probe vidi driver in exynos_drm_init(), and release vidi driver correctly.
- Remove duplicated coherent_dma_mask setting.
--- drivers/gpu/drm/exynos/exynos_dp_core.c | 45 +++-- drivers/gpu/drm/exynos/exynos_drm_core.c | 216 ++++------------------- drivers/gpu/drm/exynos/exynos_drm_crtc.c | 17 ++ drivers/gpu/drm/exynos/exynos_drm_crtc.h | 4 + drivers/gpu/drm/exynos/exynos_drm_dpi.c | 16 +- drivers/gpu/drm/exynos/exynos_drm_drv.c | 273 ++++++++++++++++++++---------- drivers/gpu/drm/exynos/exynos_drm_drv.h | 78 ++++----- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 110 +++++++----- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 87 ++++++++-- drivers/gpu/drm/exynos/exynos_drm_vidi.c | 101 +++++++++-- drivers/gpu/drm/exynos/exynos_hdmi.c | 59 ++++--- drivers/gpu/drm/exynos/exynos_mixer.c | 54 ++++-- 12 files changed, 616 insertions(+), 444 deletions(-)
drivers/gpu/drm/exynos/exynos_dp_core.c +28 -17
@@ -18,6 +18,7 @@#include <linux/interrupt.h> #include <linux/delay.h> #include <linux/of.h> +#include <linux/component.h> #include <linux/phy/phy.h> #include <video/of_display_timing.h> #include <video/of_videomode.h>
@@ -969,16 +970,6 @@ static struct drm_connector_helper_funcs exynos_dp_connector_helper_funcs = { .best_encoder = exynos_dp_best_encoder, }; -static int exynos_dp_initialize (struct exynos_drm_display *display, -struct drm_device *drm_dev) -{ -struct exynos_dp_device *dp = display->ctx; - - dp->drm_dev = drm_dev; - -return 0 ; -} -static bool find_bridge (const char *compat,struct bridge_init *bridge) { bridge->client =NULL ;
@@ -1106,7 +1097,6 @@ static void exynos_dp_dpms(struct exynos_drm_display *display, int mode) }static struct exynos_drm_display_ops exynos_dp_display_ops = { - .initialize = exynos_dp_initialize, .create_connector = exynos_dp_create_connector, .dpms = exynos_dp_dpms, };
@@ -1230,8 +1220,10 @@ static int exynos_dp_dt_parse_panel(struct exynos_dp_device *dp)return 0 ; } -static int exynos_dp_probe (struct platform_device *pdev) +static int exynos_dp_bind (struct device *dev,struct device *master,void *data) { +struct platform_device *pdev =to_platform_device (dev); +struct drm_device *drm_dev = data;struct resource *res;struct exynos_dp_device *dp;
@@ -1293,21 +1285,40 @@ static int exynos_dp_probe(struct platform_device *pdev) }disable_irq (dp->irq); + dp->drm_dev = drm_dev; exynos_dp_display.ctx = dp;platform_set_drvdata (pdev, &exynos_dp_display); -exynos_drm_display_register (&exynos_dp_display); -return 0 ; +return exynos_drm_create_enc_conn (drm_dev, &exynos_dp_display); } -static int exynos_dp_remove (struct platform_device *pdev) +static void exynos_dp_unbind (struct device *dev,struct device *master, +void *data) { -struct exynos_drm_display *display =platform_get_drvdata (pdev); +struct exynos_drm_display *display =dev_get_drvdata (dev); +struct exynos_dp_device *dp = display->ctx; +struct drm_encoder *encoder = dp->encoder;exynos_dp_dpms (display,DRM_MODE_DPMS_OFF ); -exynos_drm_display_unregister (&exynos_dp_display); + encoder->funcs->destroy (encoder); +drm_connector_cleanup (&dp->connector); +} + +static const struct component_ops exynos_dp_ops = { + .bind = exynos_dp_bind, + .unbind = exynos_dp_unbind, +}; + +static int exynos_dp_probe (struct platform_device *pdev) +{ +return component_add (&pdev->dev, &exynos_dp_ops); +} + +static int exynos_dp_remove (struct platform_device *pdev) +{ +component_del (&pdev->dev, &exynos_dp_ops);return 0 ; }
drivers/gpu/drm/exynos/exynos_drm_core.c +36 -180
269 lines not on this page · raw message
drivers/gpu/drm/exynos/exynos_drm_crtc.c +17 -0
@@ -367,6 +367,7 @@ int exynos_drm_crtc_create(struct exynos_drm_manager *manager)return -ENOMEM ; } + manager->crtc = &exynos_crtc->drm_crtc; crtc = &exynos_crtc->drm_crtc; private->crtc[manager->pipe] = crtc;
@@ -490,3 +491,19 @@ void exynos_drm_crtc_complete_scanout(struct drm_framebuffer *fb) manager->ops->wait_for_vblank (manager); } } + +int exynos_drm_crtc_get_pipe_from_type (struct drm_device *drm_dev, +unsigned int out_type) +{ +struct drm_crtc *crtc; + +list_for_each_entry (crtc, &drm_dev->mode_config.crtc_list, head) { +struct exynos_drm_crtc *exynos_crtc; + + exynos_crtc =to_exynos_crtc (crtc); +if (exynos_crtc->manager->type == out_type) +return exynos_crtc->manager->pipe; + } + +return -EPERM ; +}
drivers/gpu/drm/exynos/exynos_drm_crtc.h +4 -0
@@ -32,4 +32,8 @@ void exynos_drm_crtc_plane_commit(struct drm_crtc *crtc, int zpos);void exynos_drm_crtc_plane_enable (struct drm_crtc *crtc,int zpos);void exynos_drm_crtc_plane_disable (struct drm_crtc *crtc,int zpos); +/* This function gets pipe value to crtc device matched with out_type. */ +int exynos_drm_crtc_get_pipe_from_type (struct drm_device *drm_dev, +unsigned int out_type); +#endif
drivers/gpu/drm/exynos/exynos_drm_dpi.c +9 -7
@@ -255,7 +255,7 @@ enum { FIMD_PORT_WRB, }; -static struct device_node *exynos_dpi_of_find_panel_node (struct device *dev) +struct device_node *exynos_dpi_of_find_panel_node (struct device *dev) {struct device_node *np, *ep;
@@ -308,7 +308,7 @@ static int exynos_dpi_parse_dt(struct exynos_dpi *ctx)return 0 ; } -int exynos_dpi_probe (struct device *dev) +int exynos_dpi_probe (struct drm_device *drm_dev,struct device *dev) {struct exynos_dpi *ctx;int ret;
@@ -325,15 +325,17 @@ int exynos_dpi_probe(struct device *dev)if (ret <0 )return ret; -exynos_drm_display_register (&exynos_dpi_display); - -return 0 ; +return exynos_drm_create_enc_conn (drm_dev, &exynos_dpi_display); } -int exynos_dpi_remove (struct device *dev) +int exynos_dpi_remove (struct drm_device *drm_dev,struct device *dev) { +struct drm_encoder *encoder = exynos_dpi_display.encoder; +struct exynos_dpi *ctx = exynos_dpi_display.ctx; +exynos_dpi_dpms (&exynos_dpi_display,DRM_MODE_DPMS_OFF ); -exynos_drm_display_unregister (&exynos_dpi_display); + encoder->funcs->destroy (encoder); +drm_connector_cleanup (&ctx->connector);return 0 ; }
drivers/gpu/drm/exynos/exynos_drm_drv.c +182 -91
388 lines not on this page · raw message
drivers/gpu/drm/exynos/exynos_drm_drv.h +35 -43
154 lines not on this page · raw message
drivers/gpu/drm/exynos/exynos_drm_dsi.c +71 -39
136 lines not on this page · raw message
drivers/gpu/drm/exynos/exynos_drm_fimd.c +70 -17
139 lines not on this page · raw message
drivers/gpu/drm/exynos/exynos_drm_vidi.c +84 -17
155 lines not on this page · raw message
drivers/gpu/drm/exynos/exynos_hdmi.c +37 -22
113 lines not on this page · raw message
drivers/gpu/drm/exynos/exynos_mixer.c +43 -11
101 lines not on this page · raw message
Signature · 1 line
1.7.9.5
Inki Dae
maintainerPATCH v3 2/9 drm/exynos: dpi: fix hotplug fail issue
In reply to Inki DaeWhen connector is created, if connector->polled is DRM_CONNECTOR_POLL_CONNECT then drm_kms_helper_hotplug_event function isn't called at drm_helper_hpd_irq_event because the function will be called only in case of DRM_CONNECTOR_POLL_HPD.
So this patch sets always DRM_CONNECTOR_POLL_HPD flag to connector->polled of parallel panel driver at connector creation.
--- drivers/gpu/drm/exynos/exynos_drm_dpi.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/gpu/drm/exynos/exynos_drm_dpi.c +1 -4
@@ -123,10 +123,7 @@ static int exynos_dpi_create_connector(struct exynos_drm_display *display, ctx->encoder = encoder; -if (ctx->panel_node) - connector->polled =DRM_CONNECTOR_POLL_CONNECT ; -else - connector->polled =DRM_CONNECTOR_POLL_HPD ; + connector->polled =DRM_CONNECTOR_POLL_HPD ; ret = drm_connector_init(encoder->dev, connector, &exynos_dpi_connector_funcs,
Signature · 1 line
1.7.9.5
Inki Dae
maintainerPATCH v3 3/9 ARM: dts: exynos4210-universal: add super device node for exynos drm
In reply to Inki Dae--- arch/arm/boot/dts/exynos4210-universal_c210.dts | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/boot/dts/exynos4210-universal_c210.dts +5 -0
@@ -409,6 +409,11 @@ }; }; + display-subsystem { + compatible = "samsung,exynos-display-subsystem"; + ports = <&fimd>; + }; + pwm@139D0000 { compatible = "samsung,s5p6440-pwm"; status = "okay";
Signature · 1 line
1.7.9.5
Inki Dae
maintainerPATCH v3 4/9 ARM: dts: exynos4210-trats: add super device node for exynos drm
In reply to Inki Dae--- arch/arm/boot/dts/exynos4210-trats.dts | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/boot/dts/exynos4210-trats.dts +5 -0
@@ -414,6 +414,11 @@ status = "okay"; }; + display-subsystem { + compatible = "samsung,exynos-display-subsystem"; + ports = <&fimd>, <&dsi_0>; + }; + camera { pinctrl-names = "default"; pinctrl-0 = <>;
Signature · 1 line
1.7.9.5
Inki Dae
maintainerPATCH v3 5/9 ARM: dts: exynos4412-trats2: add super device node for exynos drm
In reply to Inki Dae--- arch/arm/boot/dts/exynos4412-trats2.dts | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm/boot/dts/exynos4412-trats2.dts +5 -0
@@ -581,6 +581,11 @@ status = "okay"; }; + display-subsystem { + compatible = "samsung,exynos-display-subsystem"; + ports = <&fimd>, <&dsi_0>; + }; + camera { pinctrl-0 = <&cam_port_b_clk_active>; pinctrl-names = "default";
Signature · 1 line
1.7.9.5
Inki Dae
maintainerPATCH v3 6/9 exynos/drm: add DT bindings
In reply to Inki DaeThis patch adds bindings for Exynos drm display subsystem. The bindings describes ports containing a list of phandles pointing to display controller, image enhancer, and display interfaces nodes.
--- .../bindings/drm/exynos/samsung-exynos-drm.txt | 32 ++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/drm/exynos/samsung-exynos-drm.txt
Documentation/devicetree/bindings/drm/exynos/samsung-exynos-drm.txt new file +32 -0
@@ -0,0 +1,32 @@ +Samsung Exynos DRM master device +================================ + +The Samsung Exynos DRM master device is a virtual device needed to list all +display controller, image enhancer, and display interface nodes that comprise +the graphics subsystem. + +Required properties: +- compatible: Should be "samsung,exynos-display-subsystem" +- ports: Should contain a list of phandles pointing to display controller, + image enhancer, and display interface ports. + +Examples: + +In case of using MIPI-DSI, +display-subsystem { + compatible = "samsung,exynos-display-subsystem"; + ports = <&fimd>, <&dsi>; +}; + + +In case of using DisplayPort, +display-subsystem { + compatible = "samsung,exynos-display-subsystem"; + ports = <&fimd>, <&dp>; +}; + +In case of using parallel panel, +display-subsystem { + compatible = "samsung,exynos-display-subsystem"; + ports = <&fimd>; +};
Signature · 1 line
1.7.9.5
Inki Dae
maintainerPATCH v2 7/9 drm/exynos: separate dpi from fimd
In reply to Inki DaeFrom: Andrzej Hajda <[email protected]>
The patch separates dpi related routines from fimd.
Changelog v2:
- Rename ctx->dpi to ctx->display
--- drivers/gpu/drm/exynos/exynos_drm_dpi.c | 40 +++++------ drivers/gpu/drm/exynos/exynos_drm_drv.h | 15 ++-- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 109 ++++++++++++------------------ 3 files changed, 69 insertions(+), 95 deletions(-)
drivers/gpu/drm/exynos/exynos_drm_dpi.c +20 -20
@@ -40,20 +40,10 @@ exynos_dpi_detect(struct drm_connector *connector, bool force) {struct exynos_dpi *ctx =connector_to_dpi (connector); -/* panels supported only by boot-loader are always connected */ -if (!ctx->panel_node) -return connector_status_connected; - -if (!ctx->panel) { - ctx->panel =of_drm_find_panel (ctx->panel_node); -if (ctx->panel) -drm_panel_attach (ctx->panel, &ctx->connector); - } +if (!ctx->panel->connector) +drm_panel_attach (ctx->panel, &ctx->connector); -if (ctx->panel) -return connector_status_connected; - -return connector_status_disconnected; +return connector_status_connected; }static void exynos_dpi_connector_destroy (struct drm_connector *connector)
@@ -291,8 +281,10 @@ static int exynos_dpi_parse_dt(struct exynos_dpi *ctx)return -ENOMEM ; ret =of_get_videomode (dn, vm,0 ); -if (ret <0 ) +if (ret <0 ) { +devm_kfree (dev, vm);return ret; + } ctx->vm = vm;
@@ -305,27 +297,35 @@ static int exynos_dpi_parse_dt(struct exynos_dpi *ctx)return 0 ; } -int exynos_dpi_probe (struct drm_device *drm_dev,struct device *dev) +struct exynos_drm_display *exynos_dpi_probe (struct device *dev) {struct exynos_dpi *ctx;int ret; ctx =devm_kzalloc (dev,sizeof (*ctx),GFP_KERNEL );if (!ctx) -return -ENOMEM ; +return NULL ; ctx->dev = dev; exynos_dpi_display.ctx = ctx; ctx->dpms_mode =DRM_MODE_DPMS_OFF ; ret =exynos_dpi_parse_dt (ctx); -if (ret <0 ) -return ret; +if (ret <0 ) { +devm_kfree (dev, ctx); +return NULL ; + } + +if (ctx->panel_node) { + ctx->panel =of_drm_find_panel (ctx->panel_node); +if (!ctx->panel) +return ERR_PTR (-EPROBE_DEFER ); + } -return exynos_drm_create_enc_conn (drm_dev, &exynos_dpi_display); +return &exynos_dpi_display; } -int exynos_dpi_remove (struct drm_device *drm_dev,struct device *dev) +int exynos_dpi_remove (struct device *dev) {struct drm_encoder *encoder = exynos_dpi_display.encoder;struct exynos_dpi *ctx = exynos_dpi_display.ctx;
drivers/gpu/drm/exynos/exynos_drm_drv.h +5 -10
@@ -334,17 +334,12 @@ int exynos_platform_device_ipp_register(void);void exynos_platform_device_ipp_unregister (void );#ifdef CONFIG_DRM_EXYNOS_DPI -int exynos_dpi_probe (struct drm_device *drm_dev,struct device *dev); -int exynos_dpi_remove (struct drm_device *drm_dev,struct device *dev); -struct device_node *exynos_dpi_of_find_panel_node (struct device *dev); +struct exynos_drm_display *exynos_dpi_probe (struct device *dev); +int exynos_dpi_remove (struct device *dev);#else -static inline int exynos_dpi_probe (struct drm_device *drm_dev, -struct device *dev) {return 0 ; } -static inline int exynos_dpi_remove (struct drm_device *drm_dev, -struct device *dev) {return 0 ; } -static inline struct device_node - *exynos_dpi_of_find_panel_node (struct device *dev) -{return NULL ; } +static inline struct exynos_drm_display * +exynos_dpi_probe (struct device *dev) {return 0 ; } +static inline int exynos_dpi_remove (struct device *dev) {return 0 ; }#endif /*
drivers/gpu/drm/exynos/exynos_drm_fimd.c +44 -65
137 lines not on this page · raw message
Signature · 1 line
1.7.9.5
Inki Dae
maintainerPATCH v3 8/9 drm/exynos: fix comment to exynos_drm_device_subdrv_prove call
In reply to Inki Daesubdrv_probe callback of virtual display driver will be called by exynos_drm_device_subdrv_probe() to create crtc and encoder/connector for virtual display driver. So it fixes comments to exynos_drm_device_subdrv probe call.
--- drivers/gpu/drm/exynos/exynos_drm_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/exynos/exynos_drm_drv.c +1 -1
@@ -101,7 +101,7 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)if (ret) goto err_cleanup_vblank; -/* Probe non kms sub drivers. */ +/* Probe non kms sub drivers and virtual display driver. */ ret =exynos_drm_device_subdrv_probe (dev);if (ret) goto err_unbind_all;
Signature · 1 line
1.7.9.5
Inki Dae
maintainerPATCH v3 9/9 drm/exynos: modify goto labels to meaningful names
In reply to Inki Dae--- drivers/gpu/drm/exynos/exynos_drm_drv.c | 40 +++++++++++++++---------------- 1 file changed, 20 insertions(+), 20 deletions(-)
drivers/gpu/drm/exynos/exynos_drm_drv.c +20 -20
@@ -508,56 +508,56 @@ static int exynos_drm_platform_probe(struct platform_device *pdev)#ifdef CONFIG_DRM_EXYNOS_DSI ret =platform_driver_register (&dsi_driver);if (ret <0 ) - goto out_dsi; + goto err_unregister_dp;#endif #ifdef CONFIG_DRM_EXYNOS_FIMD ret =platform_driver_register (&fimd_driver);if (ret <0 ) - goto out_fimd; + goto err_unregister_dsi;#endif #ifdef CONFIG_DRM_EXYNOS_HDMI ret =platform_driver_register (&hdmi_driver);if (ret <0 ) - goto out_hdmi; + goto err_unregister_fimd; ret =platform_driver_register (&mixer_driver);if (ret <0 ) - goto out_mixer; + goto err_unregister_hdmi;#endif #ifdef CONFIG_DRM_EXYNOS_G2D ret =platform_driver_register (&g2d_driver);if (ret <0 ) - goto out_g2d; + goto err_unregister_mixer;#endif #ifdef CONFIG_DRM_EXYNOS_FIMC ret =platform_driver_register (&fimc_driver);if (ret <0 ) - goto out_fimc; + goto err_unregister_g2d;#endif #ifdef CONFIG_DRM_EXYNOS_ROTATOR ret =platform_driver_register (&rotator_driver);if (ret <0 ) - goto out_rotator; + goto err_unregister_fimc;#endif #ifdef CONFIG_DRM_EXYNOS_GSC ret =platform_driver_register (&gsc_driver);if (ret <0 ) - goto out_gsc; + goto err_unregister_rotator;#endif #ifdef CONFIG_DRM_EXYNOS_IPP ret =platform_driver_register (&ipp_driver);if (ret <0 ) - goto out_ipp; + goto err_unregister_gsc; ret =exynos_platform_device_ipp_register ();if (ret <0 ) - goto out_ipp_dev; + goto err_unregister_ipp;#endif ret =component_master_add (&pdev->dev, &exynos_drm_ops);
@@ -568,46 +568,46 @@ static int exynos_drm_platform_probe(struct platform_device *pdev)#ifdef CONFIG_DRM_EXYNOS_IPP exynos_platform_device_ipp_unregister (); -out_ipp_dev: +err_unregister_ipp:platform_driver_unregister (&ipp_driver); -out_ipp: +err_unregister_gsc:#endif #ifdef CONFIG_DRM_EXYNOS_GSC platform_driver_unregister (&gsc_driver); -out_gsc: +err_unregister_rotator:#endif #ifdef CONFIG_DRM_EXYNOS_ROTATOR platform_driver_unregister (&rotator_driver); -out_rotator: +err_unregister_fimc:#endif #ifdef CONFIG_DRM_EXYNOS_FIMC platform_driver_unregister (&fimc_driver); -out_fimc: +err_unregister_g2d:#endif #ifdef CONFIG_DRM_EXYNOS_G2D platform_driver_unregister (&g2d_driver); -out_g2d: +err_unregister_mixer:#endif #ifdef CONFIG_DRM_EXYNOS_HDMI platform_driver_unregister (&mixer_driver); -out_mixer: +err_unregister_hdmi:platform_driver_unregister (&hdmi_driver); -out_hdmi: +err_unregister_fimd:#endif #ifdef CONFIG_DRM_EXYNOS_FIMD platform_driver_unregister (&fimd_driver); -out_fimd: +err_unregister_dsi:#endif #ifdef CONFIG_DRM_EXYNOS_DSI platform_driver_unregister (&dsi_driver); -out_dsi: +err_unregister_dp:#endif #ifdef CONFIG_DRM_EXYNOS_DP
Signature · 1 line
1.7.9.5