Skip to content

Commit

Permalink
staging: olpc_dcon: switch back to using olpc_board(0xXX)
Browse files Browse the repository at this point in the history
...Rather than macros that don't exist.  Necessary for building the
driver.

Signed-off-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Andres Salomon authored and Greg Kroah-Hartman committed Sep 30, 2010
1 parent eecb3e4 commit 316604b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/olpc_dcon/olpc_dcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static int dcon_bus_stabilize(struct i2c_client *client, int is_powered_down)
if (x < 0) {
printk(KERN_ERR "olpc-dcon: unable to stabilize dcon's "
"smbus, reasserting power and praying.\n");
BUG_ON(olpc_board_at_least(olpc_board(BOARD_XO_1_C2)));
BUG_ON(olpc_board_at_least(olpc_board(0xc2)));
x = 0;
olpc_ec_cmd(0x26, (unsigned char *) &x, 1, NULL, 0);
msleep(100);
Expand Down Expand Up @@ -295,7 +295,7 @@ static void dcon_sleep(int state)
if (state == dcon_sleep_val)
return;

if (!olpc_board_at_least(olpc_board(BOARD_XO_1_C2)))
if (!olpc_board_at_least(olpc_board(0xc2)))
return;

if (state == DCON_SLEEP) {
Expand Down

0 comments on commit 316604b

Please sign in to comment.