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-24 09:28:11 +02:00
2007-07-29 16:53:59 -07:00
2007-04-27 10:57:29 -07:00
2007-07-24 15:58:51 -07:00
2007-07-18 02:13:42 -07:00
2007-07-16 09:05:40 -07:00
2007-07-29 16:45:38 -07:00
2007-07-29 17:37:45 -07:00
2007-07-11 06:53:45 +02:00
2007-07-24 09:28:11 +02: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-13 01:29:51 -04:00
2007-07-16 09:05:40 -07:00
2007-07-16 09:05:45 -07:00
2007-07-26 11:35:18 -07:00
2007-05-08 11:15:02 -07:00
2007-02-14 08:09:54 -08:00
2007-07-22 11:36:49 -07:00
2007-07-16 09:05:42 -07:00
2007-07-12 16:34:30 -07:00
2007-07-19 14:24:57 -07:00
2007-07-29 16:45:38 -07:00
2007-07-26 11:11:57 -07:00
2007-07-26 11:11:57 -07:00
2007-07-29 17:22:03 -07:00
2007-07-28 19:33:04 -07:00
2007-07-21 17:49:17 -07:00
2007-07-25 14:31:27 +03:00
2007-07-16 01:15:51 +01:00
2007-07-29 17:37:45 -07:00
2007-07-22 21:31:00 +10:00
2007-05-09 12:30:49 -07:00
2007-07-24 09:28:11 +02:00
2007-07-26 11:11:56 -07:00
2007-07-29 17:22:03 -07:00
2007-07-19 10:04:50 -07:00
2007-07-25 01:36:53 -04:00
2007-07-26 14:00:56 -07:00
2007-07-26 11:11:56 -07:00
2007-07-29 17:37:45 -07:00
2007-07-19 10:04:50 -07:00
2007-07-20 14:25:51 +10:00
2007-07-20 21:42:24 +02:00
2007-07-18 08:38:22 -07:00
2007-07-20 08:24:49 -07:00
2007-07-29 16:53:59 -07:00
2007-07-22 21:30:59 +10:00
2007-07-29 16:53:59 -07:00
2007-07-15 16:56:12 -07:00
2007-06-28 19:19:20 +10:00
2007-07-19 10:04:50 -07:00
2007-07-28 19:33:04 -07:00
2007-07-27 12:29:20 +02:00
2007-07-24 15:57:43 -07:00
2007-07-29 17:22:03 -07:00
2007-07-25 11:05:01 -07:00
2007-07-19 10:04:50 -07:00
2007-07-19 10:04:50 -07:00
2007-07-26 11:35:16 -07:00
2007-07-18 08:38:22 -07:00
2007-07-19 10:04:50 -07:00
2007-07-18 15:57:16 -07:00
2007-07-22 11:19:46 -07:00
2007-07-30 00:27:33 -07:00
2007-07-26 11:11:57 -07:00
2007-07-26 11:35:17 -07:00
2007-07-11 16:09:09 -07:00
2007-07-20 13:39:59 +10:00
2007-07-20 13:28:41 +10:00