From: "Maciej W. Rozycki" This is a set of changes to convert the driver to the driver model. As a side-effect the driver now supports building as a module. Signed-off-by: Maciej W. Rozycki Cc: Ralf Baechle Cc: James Simmons Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton --- drivers/video/Kconfig | 4 - drivers/video/pmagb-b-fb.c | 98 ++++++++++++++++++++--------------- 2 files changed, 58 insertions(+), 44 deletions(-) diff -puN drivers/video/Kconfig~mips-pmagb-b-fb-convert-to-the-driver-model drivers/video/Kconfig --- a/drivers/video/Kconfig~mips-pmagb-b-fb-convert-to-the-driver-model +++ a/drivers/video/Kconfig @@ -1454,8 +1454,8 @@ config FB_PMAG_BA used mainly in the MIPS-based DECstation series. config FB_PMAGB_B - bool "PMAGB-B TURBOchannel framebuffer support" - depends on (FB = y) && TC + tristate "PMAGB-B TURBOchannel framebuffer support" + depends on TC select FB_CFB_FILLRECT select FB_CFB_COPYAREA select FB_CFB_IMAGEBLIT diff -puN drivers/video/pmagb-b-fb.c~mips-pmagb-b-fb-convert-to-the-driver-model drivers/video/pmagb-b-fb.c --- a/drivers/video/pmagb-b-fb.c~mips-pmagb-b-fb-convert-to-the-driver-model +++ a/drivers/video/pmagb-b-fb.c @@ -11,7 +11,7 @@ * Michael Engel , * Karsten Merker and * Harald Koerfgen. - * Copyright (c) 2005 Maciej W. Rozycki + * Copyright (c) 2005, 2006 Maciej W. Rozycki * * This file is subject to the terms and conditions of the GNU General * Public License. See the file COPYING in the main directory of this @@ -25,18 +25,16 @@ #include #include #include +#include #include #include #include -#include - #include