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/pmag-ba-fb.c | 95 +++++++++++++++++++---------------- 2 files changed, 56 insertions(+), 43 deletions(-) diff -puN drivers/video/Kconfig~mips-pmag-ba-fb-convert-to-the-driver-model drivers/video/Kconfig --- a/drivers/video/Kconfig~mips-pmag-ba-fb-convert-to-the-driver-model +++ a/drivers/video/Kconfig @@ -1444,8 +1444,8 @@ config FB_PMAG_AA used mainly in the MIPS-based DECstation series. config FB_PMAG_BA - bool "PMAG-BA TURBOchannel framebuffer support" - depends on (FB = y) && TC + tristate "PMAG-BA TURBOchannel framebuffer support" + depends on FB && TC select FB_CFB_FILLRECT select FB_CFB_COPYAREA select FB_CFB_IMAGEBLIT diff -puN drivers/video/pmag-ba-fb.c~mips-pmag-ba-fb-convert-to-the-driver-model drivers/video/pmag-ba-fb.c --- a/drivers/video/pmag-ba-fb.c~mips-pmag-ba-fb-convert-to-the-driver-model +++ a/drivers/video/pmag-ba-fb.c @@ -15,7 +15,8 @@ * Michael Engel , * Karsten Merker and * Harald Koerfgen. - * Copyright (c) 2005 Maciej W. Rozycki + * Copyright (c) 2005, 2006 Maciej W. Rozycki + * Copyright (c) 2005 James Simmons * * 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 @@ -28,26 +29,21 @@ #include #include #include +#include #include #include #include -#include - #include