Thread (1 message) 1 message, 1 author, 2013-02-17

fb: mmp: include linux/platform_device.h

From: haojian.zhuang@gmail.com (Haojian Zhuang)
Date: 2013-02-17 15:45:36
Also in: lkml

On Fri, Feb 15, 2013 at 10:16 PM, Arnd Bergmann [off-list ref] wrote:
quoted hunk
Patch 16559ae "kgdb: remove #include <linux/serial_8250.h> from kgdb.h"
changes the kgdb.h file so that drivers including it do not implicitly
include linux/platform_device.h. The mmp framebuffer driver is new,
so Greg did not have a chance to fix it up when introducing his change.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
On Thursday 14 February 2013, Greg Kroah-Hartman wrote:
quoted
On Thu, Feb 14, 2013 at 11:26:56PM +0100, Arnd Bergmann wrote:
quoted
Patch 16559ae "kgdb: remove #include <linux/serial_8250.h> from kgdb.h"
removed an implicit inclusion of linux/platform_device.h
In a number of places. This adds back explicit inclusions in a few
more places I found.
quoted
 drivers/video/mmp/fb/mmpfb.c             | 1 +
This file isn't my tty tree, so I can't apply that part of the patch,
but I've applied the rest of the patch, and the 2 others you sent me to
fix this issue.
Right. It seems the driver is only in Andrew's tree. Andrew, can you
add this hunk on top?
diff --git a/drivers/video/mmp/fb/mmpfb.c b/drivers/video/mmp/fb/mmpfb.c
index f34a3a9..6d1fa96 100644
--- a/drivers/video/mmp/fb/mmpfb.c
+++ b/drivers/video/mmp/fb/mmpfb.c
@@ -21,6 +21,7 @@
  */
 #include <linux/module.h>
 #include <linux/dma-mapping.h>
+#include <linux/platform_device.h>
 #include "mmpfb.h"

 static int var_to_pixfmt(struct fb_var_screeninfo *var)
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help