Files
linux/drivers
David S. Miller c7f439b99e [VIDEO]: Fix OOPS in all SBUS framebuffer drivers.
All of these drivers use a silly:

struct all_info {
	struct fb_info info;
	struct foo_par par;
};

struct all_info *all = kzalloc(sizeof(*all), GFP_KERNEL);
all->info.par = &all->par;

etc. etc. code sequence, basically replicating the provided
framebuffer_alloc()/framebuffer_release(), and doing it badly.

Not only is this massive code duplication, it also caused a
bug in that we weren't setting the fb_info->device pointer
which results in an OOPS when fb_is_primary_device() runs.

Fix all of this by using framebuffer_{alloc,release}() and
passing in "&of_device->dev" as the device pointer.

Signed-off-by: David S. Miller <davem@davemloft.net>
2007-07-30 00:27:33 -07:00
..
2007-07-29 16:53:59 -07:00
2007-07-18 02:13:42 -07:00
2007-07-29 17:09:29 -07:00
2007-07-21 18:37:12 -07:00
2007-07-16 09:05:40 -07:00
2007-07-16 09:05:42 -07:00
2007-07-12 16:34:30 -07:00
2007-07-26 11:11:57 -07:00
2007-07-26 11:11:57 -07:00
2007-07-21 17:49:17 -07:00
2007-07-26 11:11:56 -07:00
2007-07-26 11:11:56 -07:00
2007-07-20 14:25:51 +10:00
2007-07-29 16:53:59 -07:00
2007-07-29 16:53:59 -07:00
2007-07-26 11:35:16 -07:00
2007-07-18 08:38:22 -07:00
2007-07-18 15:57:16 -07:00
2007-07-26 11:11:57 -07:00
2007-07-26 11:35:17 -07:00
2007-07-20 13:39:59 +10:00