video: mb862xxfbdrv.c: local functions should not be exposed globally
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 3 May 2012 00:37:35 +0000 (17:37 -0700)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Tue, 8 May 2012 16:57:30 +0000 (16:57 +0000)
Functions not referenced outside of a source file should be marked
static to prevent them from being exposed globally.

Quiets the sparse warnings:

warning: symbol 'mb862xx_intr' was not declared. Should it be static?

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/mb862xx/mb862xxfbdrv.c

index 11a7a33..00ce1f3 100644 (file)
@@ -579,7 +579,7 @@ static ssize_t mb862xxfb_show_dispregs(struct device *dev,
 
 static DEVICE_ATTR(dispregs, 0444, mb862xxfb_show_dispregs, NULL);
 
-irqreturn_t mb862xx_intr(int irq, void *dev_id)
+static irqreturn_t mb862xx_intr(int irq, void *dev_id)
 {
        struct mb862xxfb_par *par = (struct mb862xxfb_par *) dev_id;
        unsigned long reg_ist, mask;