From: Pranith Kumar Date: Thu, 21 Aug 2014 12:23:57 +0000 (-0400) Subject: fbdev: Remove __init from chips_hw_init() to fix build failure X-Git-Tag: v3.17-rc3~14^2~4 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=754d561ab694ff240ad1615abd0d99f3c1db79a2;p=~emulex%2Finfiniband.git fbdev: Remove __init from chips_hw_init() to fix build failure Fix build failure caused as follows: The function chipsfb_pci_init() references the function __init chips_hw_init(). This is often because chipsfb_pci_init lacks a __init annotation or the annotation of chips_hw_init is wrong. make: *** [drivers] Error 2 by removing the __init annotation from chips_hw_init(). The other thing that could have been done was annotating chipsfb_pci_init(). But that cannot be done since chipsfb_pci_init() is called from non __init functions. Signed-off-by: Pranith Kumar Signed-off-by: Tomi Valkeinen --- diff --git a/drivers/video/fbdev/chipsfb.c b/drivers/video/fbdev/chipsfb.c index 206a66b6107..59abdc6a97f 100644 --- a/drivers/video/fbdev/chipsfb.c +++ b/drivers/video/fbdev/chipsfb.c @@ -273,7 +273,7 @@ static struct chips_init_reg chips_init_xr[] = { { 0xa8, 0x00 } }; -static void __init chips_hw_init(void) +static void chips_hw_init(void) { int i;