mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] OMAP:DSS2:OMAPFB: Fix probe error path
@ 2010-07-01 13:40 Afzal Mohammed
  2010-07-01 13:40 ` Afzal Mohammed
  0 siblings, 1 reply; 5+ messages in thread
From: Afzal Mohammed @ 2010-07-01 13:40 UTC (permalink / raw)
  To: tomi.valkeinen
  Cc: ville.syrjala, tj, lazfamam, linux-omap, linux-fbdev, linux-kernel

Hi Tomi,

Is this change ok instead of having sysfs entry removal in omapfb_free_resources() ?
Hope this change makes probe look more of a remove mirror.

Regards
Afzal

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH] OMAP:DSS2:OMAPFB: Fix probe error path
@ 2010-06-30 14:15 Afzal Mohammed
  2010-07-01  9:54 ` Tomi Valkeinen
  0 siblings, 1 reply; 5+ messages in thread
From: Afzal Mohammed @ 2010-06-30 14:15 UTC (permalink / raw)
  To: tomi.valkeinen
  Cc: ville.syrjala, tj, lazfamam, linux-omap, linux-fbdev, linux-kernel

If enabling fb0 fails in omapfb_create_framebuffers(), remove
sysfs file before returning to probe. This is required to complete
the cleanup in the above mentioned error case.

Signed-off-by: Afzal Mohammed <lazfamam@gmail.com>
---
 drivers/video/omap2/omapfb/omapfb-main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c
index 4b4506d..2319b81 100644
--- a/drivers/video/omap2/omapfb/omapfb-main.c
+++ b/drivers/video/omap2/omapfb/omapfb-main.c
@@ -1945,6 +1945,7 @@ static int omapfb_create_framebuffers(struct omapfb2_device *fbdev)
 			r = omapfb_overlay_enable(ovl, 1);
 
 			if (r) {
+				omapfb_remove_sysfs(fbdev);
 				dev_err(fbdev->dev,
 						"failed to enable overlay\n");
 				return r;
-- 
1.7.0.4


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-07-01 15:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-01 13:40 [PATCH] OMAP:DSS2:OMAPFB: Fix probe error path Afzal Mohammed
2010-07-01 13:40 ` Afzal Mohammed
2010-07-01 14:57   ` Tomi Valkeinen
  -- strict thread matches above, loose matches on Subject: below --
2010-06-30 14:15 Afzal Mohammed
2010-07-01  9:54 ` Tomi Valkeinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®