linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] drivers/video: randconfig patches for kernel 3.4.patch
@ 2012-05-15 21:02 mathieu.poirier
  2012-05-15 21:02 ` [PATCH 1/5] drivers/video: use correct __devexit_p annotation mathieu.poirier
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: mathieu.poirier @ 2012-05-15 21:02 UTC (permalink / raw)
  To: linux-fbdev; +Cc: linux-kernel, arnd, mathieu.poirier

From: Arnd Bergmann <arnd@arndb.de>

These patches fix miscellaneous problems when working
with make randconfig.  They were discovered on kernel
3.1-rc4 and have been reformatted for 3.4.

Arnd Bergmann (5):
  drivers/video: use correct __devexit_p annotation
  video/ili9320: do not mark exported functions __devexit
  video/console: automatically select a font
  drivers/savagefb: use mdelay instead of udelay
  drivers/tosa: driver needs I2C and SPI to compile

 drivers/video/backlight/Kconfig        |    2 +-
 drivers/video/backlight/ili9320.c      |    2 +-
 drivers/video/broadsheetfb.c           |    2 +-
 drivers/video/console/Kconfig          |   14 ++++++++++++++
 drivers/video/mbx/mbxfb.c              |    2 +-
 drivers/video/savage/savagefb_driver.c |   10 +++++-----
 6 files changed, 23 insertions(+), 9 deletions(-)

-- 
1.7.5.4


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/5] drivers/video: use correct __devexit_p annotation
  2012-05-15 21:02 [PATCH 0/5] drivers/video: randconfig patches for kernel 3.4.patch mathieu.poirier
@ 2012-05-15 21:02 ` mathieu.poirier
  2012-05-15 21:02 ` [PATCH 2/5] video/ili9320: do not mark exported functions __devexit mathieu.poirier
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mathieu.poirier @ 2012-05-15 21:02 UTC (permalink / raw)
  To: linux-fbdev; +Cc: linux-kernel, arnd, mathieu.poirier

From: Arnd Bergmann <arnd@arndb.de>

__devexit functions are discarded when CONFIG_HOTPLUG
is not set, so the symbol needs to be referenced carefully.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
---
 drivers/video/broadsheetfb.c |    2 +-
 drivers/video/mbx/mbxfb.c    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/video/broadsheetfb.c b/drivers/video/broadsheetfb.c
index 377dde3..c95b417 100644
--- a/drivers/video/broadsheetfb.c
+++ b/drivers/video/broadsheetfb.c
@@ -1211,7 +1211,7 @@ static int __devexit broadsheetfb_remove(struct platform_device *dev)
 
 static struct platform_driver broadsheetfb_driver = {
 	.probe	= broadsheetfb_probe,
-	.remove = broadsheetfb_remove,
+	.remove = __devexit_p(broadsheetfb_remove),
 	.driver	= {
 		.owner	= THIS_MODULE,
 		.name	= "broadsheetfb",
diff --git a/drivers/video/mbx/mbxfb.c b/drivers/video/mbx/mbxfb.c
index 55bf619..56550ec 100644
--- a/drivers/video/mbx/mbxfb.c
+++ b/drivers/video/mbx/mbxfb.c
@@ -1045,7 +1045,7 @@ static int __devexit mbxfb_remove(struct platform_device *dev)
 
 static struct platform_driver mbxfb_driver = {
 	.probe = mbxfb_probe,
-	.remove = mbxfb_remove,
+	.remove = __devexit_p(mbxfb_remove),
 	.suspend = mbxfb_suspend,
 	.resume = mbxfb_resume,
 	.driver = {
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/5] video/ili9320: do not mark exported functions __devexit
  2012-05-15 21:02 [PATCH 0/5] drivers/video: randconfig patches for kernel 3.4.patch mathieu.poirier
  2012-05-15 21:02 ` [PATCH 1/5] drivers/video: use correct __devexit_p annotation mathieu.poirier
@ 2012-05-15 21:02 ` mathieu.poirier
  2012-05-15 21:02 ` [PATCH 3/5] video/console: automatically select a font mathieu.poirier
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mathieu.poirier @ 2012-05-15 21:02 UTC (permalink / raw)
  To: linux-fbdev; +Cc: linux-kernel, arnd, mathieu.poirier

From: Arnd Bergmann <arnd@arndb.de>

No symbol can be exported when the section is discarded - the only
solution I could think of is not to mark symbols as __devexit
when they are exported.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
---
 drivers/video/backlight/ili9320.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/video/backlight/ili9320.c b/drivers/video/backlight/ili9320.c
index 5118a9f..b67485a 100644
--- a/drivers/video/backlight/ili9320.c
+++ b/drivers/video/backlight/ili9320.c
@@ -267,7 +267,7 @@ int __devinit ili9320_probe_spi(struct spi_device *spi,
 
 EXPORT_SYMBOL_GPL(ili9320_probe_spi);
 
-int __devexit ili9320_remove(struct ili9320 *ili)
+int ili9320_remove(struct ili9320 *ili)
 {
 	ili9320_power(ili, FB_BLANK_POWERDOWN);
 
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/5] video/console: automatically select a font
  2012-05-15 21:02 [PATCH 0/5] drivers/video: randconfig patches for kernel 3.4.patch mathieu.poirier
  2012-05-15 21:02 ` [PATCH 1/5] drivers/video: use correct __devexit_p annotation mathieu.poirier
  2012-05-15 21:02 ` [PATCH 2/5] video/ili9320: do not mark exported functions __devexit mathieu.poirier
@ 2012-05-15 21:02 ` mathieu.poirier
  2012-05-15 21:03 ` [PATCH 4/5] drivers/savagefb: use mdelay instead of udelay mathieu.poirier
  2012-05-15 21:03 ` [PATCH 5/5] drivers/tosa: driver needs I2C and SPI to compile mathieu.poirier
  4 siblings, 0 replies; 6+ messages in thread
From: mathieu.poirier @ 2012-05-15 21:02 UTC (permalink / raw)
  To: linux-fbdev; +Cc: linux-kernel, arnd, mathieu.poirier

From: Arnd Bergmann <arnd@arndb.de>

The frame buffer console needs at least one font to be built into
the kernel, so add the necessary Kconfig magic to guarantee that
one of the available font is always on. If a user accidentally
disables all fonts manually, the 8x16 font will be selected
anyway.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
---
 drivers/video/console/Kconfig |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/drivers/video/console/Kconfig b/drivers/video/console/Kconfig
index c2d11fe..e2c96d0 100644
--- a/drivers/video/console/Kconfig
+++ b/drivers/video/console/Kconfig
@@ -224,5 +224,19 @@ config FONT_10x18
 	  big letters. It fits between the sun 12x22 and the normal 8x16 font.
 	  If other fonts are too big or too small for you, say Y, otherwise say N.
 
+config FONT_AUTOSELECT
+	def_bool y
+	depends on FRAMEBUFFER_CONSOLE || SGI_NEWPORT_CONSOLE || STI_CONSOLE || USB_SISUSBVGA_CON
+	depends on !FONT_8x8
+	depends on !FONT_6x11
+	depends on !FONT_7x14
+	depends on !FONT_PEARL_8x8
+	depends on !FONT_ACORN_8x8
+	depends on !FONT_MINI_4x6
+	depends on !FONT_SUN8x16
+	depends on !FONT_SUN12x22
+	depends on !FONT_10x18
+	select FONT_8x16
+
 endmenu
 
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 4/5] drivers/savagefb: use mdelay instead of udelay
  2012-05-15 21:02 [PATCH 0/5] drivers/video: randconfig patches for kernel 3.4.patch mathieu.poirier
                   ` (2 preceding siblings ...)
  2012-05-15 21:02 ` [PATCH 3/5] video/console: automatically select a font mathieu.poirier
@ 2012-05-15 21:03 ` mathieu.poirier
  2012-05-15 21:03 ` [PATCH 5/5] drivers/tosa: driver needs I2C and SPI to compile mathieu.poirier
  4 siblings, 0 replies; 6+ messages in thread
From: mathieu.poirier @ 2012-05-15 21:03 UTC (permalink / raw)
  To: linux-fbdev; +Cc: linux-kernel, arnd, mathieu.poirier

From: Arnd Bergmann <arnd@arndb.de>

Long delays need to use mdelay on architectures such as ARM
that cannot compute long timeouts in udelay.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
---
 drivers/video/savage/savagefb_driver.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/video/savage/savagefb_driver.c b/drivers/video/savage/savagefb_driver.c
index cee7803..f3d3b9c 100644
--- a/drivers/video/savage/savagefb_driver.c
+++ b/drivers/video/savage/savagefb_driver.c
@@ -1351,7 +1351,7 @@ static void savagefb_set_par_int(struct savagefb_par  *par, struct savage_reg *r
 	/* following part not present in X11 driver */
 	cr67 = vga_in8(0x3d5, par) & 0xf;
 	vga_out8(0x3d5, 0x50 | cr67, par);
-	udelay(10000);
+	mdelay(10);
 	vga_out8(0x3d4, 0x67, par);
 	/* end of part */
 	vga_out8(0x3d5, reg->CR67 & ~0x0c, par);
@@ -1904,11 +1904,11 @@ static int savage_init_hw(struct savagefb_par *par)
 	vga_out8(0x3d4, 0x66, par);
 	cr66 = vga_in8(0x3d5, par);
 	vga_out8(0x3d5, cr66 | 0x02, par);
-	udelay(10000);
+	mdelay(10);
 
 	vga_out8(0x3d4, 0x66, par);
 	vga_out8(0x3d5, cr66 & ~0x02, par);	/* clear reset flag */
-	udelay(10000);
+	mdelay(10);
 
 
 	/*
@@ -1918,11 +1918,11 @@ static int savage_init_hw(struct savagefb_par *par)
 	vga_out8(0x3d4, 0x3f, par);
 	cr3f = vga_in8(0x3d5, par);
 	vga_out8(0x3d5, cr3f | 0x08, par);
-	udelay(10000);
+	mdelay(10);
 
 	vga_out8(0x3d4, 0x3f, par);
 	vga_out8(0x3d5, cr3f & ~0x08, par);	/* clear reset flags */
-	udelay(10000);
+	mdelay(10);
 
 	/* Savage ramdac speeds */
 	par->numClocks = 4;
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 5/5] drivers/tosa: driver needs I2C and SPI to compile
  2012-05-15 21:02 [PATCH 0/5] drivers/video: randconfig patches for kernel 3.4.patch mathieu.poirier
                   ` (3 preceding siblings ...)
  2012-05-15 21:03 ` [PATCH 4/5] drivers/savagefb: use mdelay instead of udelay mathieu.poirier
@ 2012-05-15 21:03 ` mathieu.poirier
  4 siblings, 0 replies; 6+ messages in thread
From: mathieu.poirier @ 2012-05-15 21:03 UTC (permalink / raw)
  To: linux-fbdev; +Cc: linux-kernel, arnd, mathieu.poirier

From: Arnd Bergmann <arnd@arndb.de>

This driver requires both SPI and I2C to build.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
---
 drivers/video/backlight/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/video/backlight/Kconfig b/drivers/video/backlight/Kconfig
index af16884..d7487d2 100644
--- a/drivers/video/backlight/Kconfig
+++ b/drivers/video/backlight/Kconfig
@@ -88,7 +88,7 @@ config LCD_PLATFORM
 
 config LCD_TOSA
 	tristate "Sharp SL-6000 LCD Driver"
-	depends on SPI && MACH_TOSA
+	depends on I2C && SPI && MACH_TOSA
 	help
 	  If you have an Sharp SL-6000 Zaurus say Y to enable a driver
 	  for its LCD.
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-05-15 21:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-15 21:02 [PATCH 0/5] drivers/video: randconfig patches for kernel 3.4.patch mathieu.poirier
2012-05-15 21:02 ` [PATCH 1/5] drivers/video: use correct __devexit_p annotation mathieu.poirier
2012-05-15 21:02 ` [PATCH 2/5] video/ili9320: do not mark exported functions __devexit mathieu.poirier
2012-05-15 21:02 ` [PATCH 3/5] video/console: automatically select a font mathieu.poirier
2012-05-15 21:03 ` [PATCH 4/5] drivers/savagefb: use mdelay instead of udelay mathieu.poirier
2012-05-15 21:03 ` [PATCH 5/5] drivers/tosa: driver needs I2C and SPI to compile mathieu.poirier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).