linux-omap.vger.kernel.org archive mirror
 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; 6+ 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] 6+ messages in thread
* [PATCH] OMAP:DSS2:OMAPFB: Fix probe error path
@ 2010-07-05  6:38 Afzal Mohammed
  0 siblings, 0 replies; 6+ messages in thread
From: Afzal Mohammed @ 2010-07-05  6:38 UTC (permalink / raw)
  To: tomi.valkeinen@nokia.com
  Cc: ville.syrjala@nokia.com, tj@kernel.org,
	linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 95 bytes --]

Hi Tomi,

Can you please help this change get integrated onto mainline kernel.

Regards
Afzal


^ permalink raw reply	[flat|nested] 6+ 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; 6+ 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 related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-07-05  6:38 UTC | newest]

Thread overview: 6+ 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-07-05  6:38 Afzal Mohammed
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;
as well as URLs for NNTP newsgroup(s).