diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 12:45:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 12:45:57 -0400 |
commit | e945e849e18006c131fe59252ab920c6b5f7959c (patch) | |
tree | a86b1a299c5cebed14889fb638cb6808417b5f4a /drivers/video/tcx.c | |
parent | 77a50df2b14c8d3ee3c58c21c4a0e0157570df09 (diff) | |
parent | 194f1a68b93e959ede6ec363db4714e630bdbb6a (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
sparc: video drivers: add facility level
sparc: tcx.c make tcx_init and tcx_exit static
sparc: ffb.c make ffb_init and ffb_exit static
sparc: cg14.c make cg14_init and cg15_exit static
sparc: bw2.c fix bw2_exit
sparc64: Fix accidental syscall restart on child return from clone/fork/vfork.
sparc64: Clean up handling of pt_regs trap type encoding.
sparc: Remove old style signal frame support.
sparc64: Kill bogus RT_ALIGNEDSZ macro from signal.c
sparc: sunzilog.c remove unused argument
sparc: fix drivers/video/tcx.c warning
sparc64: Kill unused local ISA bus layer.
input: Rewrite sparcspkr device probing.
sparc64: Do not ignore 'pmu' device ranges.
sparc64: Kill ISA_FLOPPY_WORKS code.
sparc64: Kill CONFIG_SPARC32_COMPAT
sparc64: Cleanups and corrections for arch/sparc64/Kconfig
sparc64: Fix wedged irq regression.
Diffstat (limited to 'drivers/video/tcx.c')
-rw-r--r-- | drivers/video/tcx.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/video/tcx.c b/drivers/video/tcx.c index e5a9ddb3c8be..a71774305772 100644 --- a/drivers/video/tcx.c +++ b/drivers/video/tcx.c | |||
@@ -419,7 +419,7 @@ static int __devinit tcx_init_one(struct of_device *op) | |||
419 | par->mmap_map[6].size = SBUS_MMAP_EMPTY; | 419 | par->mmap_map[6].size = SBUS_MMAP_EMPTY; |
420 | } | 420 | } |
421 | 421 | ||
422 | par->physbase = 0; | 422 | par->physbase = op->resource[0].start; |
423 | par->which_io = op->resource[0].flags & IORESOURCE_BITS; | 423 | par->which_io = op->resource[0].flags & IORESOURCE_BITS; |
424 | 424 | ||
425 | for (i = 0; i < TCX_MMAP_ENTRIES; i++) { | 425 | for (i = 0; i < TCX_MMAP_ENTRIES; i++) { |
@@ -470,10 +470,10 @@ static int __devinit tcx_init_one(struct of_device *op) | |||
470 | 470 | ||
471 | dev_set_drvdata(&op->dev, info); | 471 | dev_set_drvdata(&op->dev, info); |
472 | 472 | ||
473 | printk("%s: TCX at %lx:%lx, %s\n", | 473 | printk(KERN_INFO "%s: TCX at %lx:%lx, %s\n", |
474 | dp->full_name, | 474 | dp->full_name, |
475 | par->which_io, | 475 | par->which_io, |
476 | op->resource[0].start, | 476 | par->physbase, |
477 | par->lowdepth ? "8-bit only" : "24-bit depth"); | 477 | par->lowdepth ? "8-bit only" : "24-bit depth"); |
478 | 478 | ||
479 | return 0; | 479 | return 0; |
@@ -527,7 +527,7 @@ static struct of_platform_driver tcx_driver = { | |||
527 | .remove = __devexit_p(tcx_remove), | 527 | .remove = __devexit_p(tcx_remove), |
528 | }; | 528 | }; |
529 | 529 | ||
530 | int __init tcx_init(void) | 530 | static int __init tcx_init(void) |
531 | { | 531 | { |
532 | if (fb_get_options("tcxfb", NULL)) | 532 | if (fb_get_options("tcxfb", NULL)) |
533 | return -ENODEV; | 533 | return -ENODEV; |
@@ -535,7 +535,7 @@ int __init tcx_init(void) | |||
535 | return of_register_driver(&tcx_driver, &of_bus_type); | 535 | return of_register_driver(&tcx_driver, &of_bus_type); |
536 | } | 536 | } |
537 | 537 | ||
538 | void __exit tcx_exit(void) | 538 | static void __exit tcx_exit(void) |
539 | { | 539 | { |
540 | of_unregister_driver(&tcx_driver); | 540 | of_unregister_driver(&tcx_driver); |
541 | } | 541 | } |