Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304443
b: refs/heads/master
c: 332a819
h: refs/heads/master
i:
  304441: bbff1f9
  304439: 2aba443
v: v3
  • Loading branch information
Jesper Juhl authored and Greg Kroah-Hartman committed Apr 24, 2012
1 parent b3a8bf5 commit 7d677da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 19f798ad009a1c9aebe6c248173e4a7ec694c680
refs/heads/master: 332a81961303dccac8bd3cb5c68aff1b3a6daeb6
19 changes: 9 additions & 10 deletions trunk/drivers/staging/olpc_dcon/olpc_dcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ static int dcon_hw_init(struct dcon_priv *dcon, int is_init)

ver = dcon_read(dcon, DCON_REG_ID);
if ((ver >> 8) != 0xDC) {
printk(KERN_ERR "olpc-dcon: DCON ID not 0xDCxx: 0x%04x "
"instead.\n", ver);
printk(KERN_ERR "olpc-dcon: DCON ID not 0xDCxx: 0x%04x instead.\n",
ver);
rc = -ENXIO;
goto err;
}
Expand Down Expand Up @@ -136,8 +136,8 @@ static int dcon_bus_stabilize(struct dcon_priv *dcon, int is_powered_down)
x = 1;
x = olpc_ec_cmd(0x26, (unsigned char *) &x, 1, NULL, 0);
if (x) {
printk(KERN_WARNING "olpc-dcon: unable to force dcon "
"to power up: %d!\n", x);
printk(KERN_WARNING "olpc-dcon: unable to force dcon to power up: %d!\n",
x);
return x;
}
msleep(10); /* we'll be conservative */
Expand All @@ -150,8 +150,7 @@ static int dcon_bus_stabilize(struct dcon_priv *dcon, int is_powered_down)
x = dcon_read(dcon, DCON_REG_ID);
}
if (x < 0) {
printk(KERN_ERR "olpc-dcon: unable to stabilize dcon's "
"smbus, reasserting power and praying.\n");
printk(KERN_ERR "olpc-dcon: unable to stabilize dcon's smbus, reasserting power and praying.\n");
BUG_ON(olpc_board_at_least(olpc_board(0xc2)));
x = 0;
olpc_ec_cmd(0x26, (unsigned char *) &x, 1, NULL, 0);
Expand Down Expand Up @@ -222,8 +221,8 @@ static void dcon_sleep(struct dcon_priv *dcon, bool sleep)
x = 0;
x = olpc_ec_cmd(0x26, (unsigned char *) &x, 1, NULL, 0);
if (x)
printk(KERN_WARNING "olpc-dcon: unable to force dcon "
"to power down: %d!\n", x);
printk(KERN_WARNING "olpc-dcon: unable to force dcon to power down: %d!\n",
x);
else
dcon->asleep = sleep;
} else {
Expand All @@ -232,8 +231,8 @@ static void dcon_sleep(struct dcon_priv *dcon, bool sleep)
dcon->disp_mode |= MODE_BL_ENABLE;
x = dcon_bus_stabilize(dcon, 1);
if (x)
printk(KERN_WARNING "olpc-dcon: unable to reinit dcon"
" hardware: %d!\n", x);
printk(KERN_WARNING "olpc-dcon: unable to reinit dcon hardware: %d!\n",
x);
else
dcon->asleep = sleep;

Expand Down

0 comments on commit 7d677da

Please sign in to comment.