summaryrefslogtreecommitdiffstats
path: root/sys/dev/fb/creator.c
diff options
context:
space:
mode:
authortmm <tmm@FreeBSD.org>2004-04-04 12:52:22 +0000
committertmm <tmm@FreeBSD.org>2004-04-04 12:52:22 +0000
commit9e272a7b6774195e41bd251b029338c2728be99f (patch)
treef79c4f6bab2b63a1e50ed3c576c28d23b2459cba /sys/dev/fb/creator.c
parent76dcd1b254f44ac8900007a9520eb0570fb87141 (diff)
downloadFreeBSD-src-9e272a7b6774195e41bd251b029338c2728be99f.zip
FreeBSD-src-9e272a7b6774195e41bd251b029338c2728be99f.tar.gz
- Use an ihandle_t to store the stdout instance handle instead of a
phandle_t. Since both are typedefed to unsigned int, this is more or less cosmetic. - Fix the code that determines whether a creator instance was used for firmware output (and should not be blanked on initialization). Since r1.2 of dev/fb/creator.c, this consisted comparing a handle of an instance of a package with a handle of the package itself. Use the test from r1.1, which utilizes OF_instance_to_package(). Submitted by: Marius Strobl <marius@alchemy.franken.de>
Diffstat (limited to 'sys/dev/fb/creator.c')
-rw-r--r--sys/dev/fb/creator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fb/creator.c b/sys/dev/fb/creator.c
index 9bc0aed..172a341 100644
--- a/sys/dev/fb/creator.c
+++ b/sys/dev/fb/creator.c
@@ -165,7 +165,7 @@ creator_configure(int flags)
struct upa_regs reg[FFB_NREG];
struct creator_softc *sc;
phandle_t chosen;
- phandle_t stdout;
+ ihandle_t stdout;
phandle_t child;
char buf[32];
int i;
@@ -183,7 +183,7 @@ creator_configure(int flags)
chosen = OF_finddevice("/chosen");
OF_getprop(chosen, "stdout", &stdout, sizeof(stdout));
- if (child == stdout)
+ if (child == OF_instance_to_package(stdout))
sc->sc_console = 1;
OF_getprop(child, "reg", reg, sizeof(reg));
OpenPOWER on IntegriCloud