aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/mbx/mbxdebugfs.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2014-04-24 13:28:21 +0100
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-05-09 12:55:46 +0300
commitfabd3152fb424cab804b18c0afdb59e96fe7c657 (patch)
treeb5fef5a0d15ae98ffc5650c41cf86e278f5d3d86 /drivers/video/fbdev/mbx/mbxdebugfs.c
parentvideo/omap: fix modular build (diff)
downloadlinux-dev-fabd3152fb424cab804b18c0afdb59e96fe7c657.tar.xz
linux-dev-fabd3152fb424cab804b18c0afdb59e96fe7c657.zip
video/mbx: fix building debugfs support
The mbx framebuffer debugfs support apparently hasn't been able to build for a long time, at least since 2006 when the u.generic_ip field in the inode was removed. This fixes the obvious bug, and also makes it possible to build the driver as a module when debugfs support is enabled, by simply including the C file. It's ugly, but it won't make the driver any worse than it already is, and doesn't require a more invasive change that might break it further. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Peter Griffin <peter.griffin@linaro.org> Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com> Cc: Tomi Valkeinen <tomi.valkeinen@ti.com> Cc: linux-fbdev@vger.kernel.org Cc: Raphael Assenat <raph@8d.com> Cc: Mike Rapoport <mike@compulab.co.il> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/fbdev/mbx/mbxdebugfs.c')
-rw-r--r--drivers/video/fbdev/mbx/mbxdebugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/mbx/mbxdebugfs.c b/drivers/video/fbdev/mbx/mbxdebugfs.c
index 4449f249b0e7..e3bc00a75296 100644
--- a/drivers/video/fbdev/mbx/mbxdebugfs.c
+++ b/drivers/video/fbdev/mbx/mbxdebugfs.c
@@ -17,7 +17,7 @@ struct mbxfb_debugfs_data {
static int open_file_generic(struct inode *inode, struct file *file)
{
- file->private_data = inode->u.generic_ip;
+ file->private_data = inode->i_private;
return 0;
}