Skip to content

Commit

Permalink
[ARM] 4828/1: fix 3 warnings in drivers/video/pxafb.c
Browse files Browse the repository at this point in the history
* Silence a debug output.
* Silence three sparse warnings, one still left.

Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Holger Schurig authored and Russell King committed Feb 17, 2008
1 parent d6a7b5f commit ac2bf5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/video/pxafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ pxafb_freq_policy(struct notifier_block *nb, unsigned long val, void *data)
switch (val) {
case CPUFREQ_ADJUST:
case CPUFREQ_INCOMPATIBLE:
printk(KERN_DEBUG "min dma period: %d ps, "
pr_debug("min dma period: %d ps, "
"new clock %d kHz\n", pxafb_display_dma_period(var),
policy->max);
// TODO: fill in min/max values
Expand Down Expand Up @@ -1361,7 +1361,7 @@ static int __init pxafb_parse_options(struct device *dev, char *options)
}
#endif

int __init pxafb_probe(struct platform_device *dev)
static int __init pxafb_probe(struct platform_device *dev)
{
struct pxafb_info *fbi;
struct pxafb_mach_info *inf;
Expand Down Expand Up @@ -1486,7 +1486,7 @@ static struct platform_driver pxafb_driver = {
};

#ifndef MODULE
int __devinit pxafb_setup(char *options)
static int __devinit pxafb_setup(char *options)
{
# ifdef CONFIG_FB_PXA_PARAMETERS
if (options)
Expand All @@ -1501,7 +1501,7 @@ MODULE_PARM_DESC(options, "LCD parameters (see Documentation/fb/pxafb.txt)");
# endif
#endif

int __devinit pxafb_init(void)
static int __devinit pxafb_init(void)
{
#ifndef MODULE
char *option = NULL;
Expand Down

0 comments on commit ac2bf5b

Please sign in to comment.