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-22 11:19:46 -07:00
2007-07-22 11:19:46 -07:00
2007-07-21 17:49:14 -07:00
2007-05-08 11:15:26 -07:00
2007-02-12 09:48:42 -08:00
2007-07-17 10:23:12 -07:00
2007-07-17 10:23:12 -07:00
2007-07-11 16:02:10 -07:00
2007-07-19 14:28:19 -07:00
2007-07-17 16:23:19 -04:00
2007-02-12 09:48:45 -08:00
2007-07-22 11:19:46 -07:00
2007-07-17 10:23:15 -07:00
2006-11-16 11:43:37 -08:00
2007-07-22 11:19:46 -07:00
2007-07-19 10:04:50 -07:00
2007-07-17 10:23:13 -07:00
2007-05-08 11:15:32 -07:00
2007-07-17 10:23:11 -07:00
2007-07-19 10:04:50 -07:00
2006-12-13 09:05:55 -08:00
2007-05-08 11:15:30 -07:00
2007-06-01 08:18:28 -07:00
2007-05-04 17:59:05 -07:00
2007-05-04 17:59:05 -07:00
2007-05-04 17:59:05 -07:00
2007-05-04 17:59:05 -07:00
2007-05-04 17:59:05 -07:00
2007-05-04 17:59:05 -07:00
2007-05-04 17:59:05 -07:00
2007-07-21 17:49:17 -07:00
2007-02-12 09:48:43 -08:00
2006-12-08 08:29:06 -08:00
2007-07-19 10:04:50 -07:00
2007-07-30 00:27:33 -07:00
2007-05-08 11:15:30 -07:00
2007-05-08 11:15:30 -07:00
2006-12-08 08:29:05 -08:00
2007-07-30 00:27:33 -07:00
2007-07-30 00:27:33 -07:00
2007-07-30 00:27:33 -07:00
2007-07-26 11:35:18 -07:00
2007-05-08 11:15:28 -07:00
2007-07-19 10:04:50 -07:00
2007-07-17 10:23:11 -07:00
2007-07-19 10:04:50 -07:00
2007-07-17 10:23:12 -07:00
2007-07-17 10:23:13 -07:00
2006-11-16 22:18:28 -08:00
2007-05-08 11:15:29 -07:00
2007-05-08 11:15:30 -07:00
2006-07-31 13:28:44 -07:00
2007-05-08 11:15:30 -07:00
2006-12-08 08:29:05 -08:00
2006-12-08 08:29:05 -08:00
2007-07-17 10:23:13 -07:00
2007-05-08 11:15:26 -07:00
2007-05-08 11:15:26 -07:00
2007-07-30 00:27:33 -07:00
2007-07-17 10:23:12 -07:00
2007-05-02 19:02:35 -07:00
2007-07-17 10:23:12 -07:00
2006-12-22 08:55:50 -08:00
2007-05-08 11:15:30 -07:00
2007-02-14 08:09:54 -08:00
2007-02-14 08:09:54 -08:00
2007-07-20 16:59:26 -07:00
2006-08-27 11:01:29 -07:00
2007-05-23 20:14:13 -07:00
2007-07-24 12:24:58 -07:00
2007-07-30 00:27:33 -07:00
2007-07-17 10:23:12 -07:00
2007-07-17 10:23:13 -07:00
2007-07-17 10:23:13 -07:00
2007-07-22 02:28:33 -04:00
2007-02-14 08:09:54 -08:00
2007-05-08 11:15:28 -07:00
2007-05-31 07:48:27 -07:00
2007-07-17 10:23:12 -07:00
2006-12-20 01:46:41 -05:00
2007-07-30 00:27:33 -07:00
2007-07-17 10:23:12 -07:00
2007-07-17 10:23:11 -07:00
2007-07-17 10:23:13 -07:00
2007-02-14 08:09:54 -08:00
2007-02-09 16:23:17 +00:00
2007-02-09 16:23:18 +00:00
2007-07-21 17:49:16 -07:00
2007-07-19 10:04:50 -07:00
2007-05-08 11:15:28 -07:00
2006-10-02 13:33:37 +01:00
2007-07-17 10:23:12 -07:00
2007-02-16 08:14:01 -08:00
2006-10-03 23:01:26 +02:00
2007-05-09 12:30:57 -07:00
2006-12-17 23:37:47 +00:00
2007-02-11 11:18:06 -08:00
2007-07-17 10:23:12 -07:00
2007-06-01 08:18:28 -07:00
2007-05-08 11:15:34 -07:00
2007-07-11 16:02:10 -07:00
2007-05-02 19:02:35 -07:00
2007-06-05 13:15:26 -07:00
2007-06-05 13:15:01 -07:00
2007-05-09 12:30:57 -07:00
2007-05-08 11:15:30 -07:00
2007-05-08 11:15:30 -07:00
2007-05-08 11:15:30 -07:00
2007-07-30 00:27:33 -07:00
2007-07-26 11:11:57 -07:00
2007-07-17 10:23:12 -07:00
2007-07-17 10:23:12 -07:00
2007-07-19 10:04:50 -07:00
2006-12-08 08:29:06 -08:00
2007-05-08 11:15:30 -07:00
2007-05-08 11:15:33 -07:00
2007-05-08 11:15:32 -07:00
2007-07-17 10:23:13 -07:00
2007-05-23 20:14:13 -07:00
2007-05-08 11:15:34 -07:00