Skip to content

Commit

Permalink
OMAP: OMAPFB: add dummy release function for omapdss
Browse files Browse the repository at this point in the history
This should fix:
WARNING: at drivers/base/core.c:131 device_release+0x68/0x7c()
Device 'omapdss' does not have a release() function, it is broken and
must be fixed.

Signed-off-by: Tomi Valkeinen <[email protected]>
  • Loading branch information
Tomi Valkeinen committed Jan 11, 2010
1 parent f778a12 commit b64a5a1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/video/omap/omapfb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,17 @@ static struct caps_table_struct color_caps[] = {
{ 1 << OMAPFB_COLOR_YUY422, "YUY422", },
};

static void omapdss_release(struct device *dev)
{
}

/* dummy device for clocks */
static struct platform_device omapdss_device = {
.name = "omapdss",
.id = -1,
.dev = {
.release = omapdss_release,
},
};

/*
Expand Down

0 comments on commit b64a5a1

Please sign in to comment.