Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267327
b: refs/heads/master
c: 191c5cf
h: refs/heads/master
i:
  267325: dac936d
  267323: 472224f
  267319: 2ca2a04
  267311: 7e049dc
  267295: 945f4e3
  267263: ed20d5e
v: v3
  • Loading branch information
Timur Tabi authored and Greg Kroah-Hartman committed Aug 26, 2011
1 parent 5122397 commit 5dca773
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: da4e40e271a30ecf8b87f70619cca93c25ed0199
refs/heads/master: 191c5cf1ffc8acf61cd2d2407052ced1a1116130
8 changes: 2 additions & 6 deletions trunk/drivers/tty/ehv_bytechan.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,6 @@ void __init udbg_init_ehv_bc(void)
unsigned int rx_count, tx_count;
unsigned int ret;

/* Check if we're running as a guest of a hypervisor */
if (!(mfmsr() & MSR_GS))
return;

/* Verify the byte channel handle */
ret = ev_byte_channel_poll(CONFIG_PPC_EARLY_DEBUG_EHV_BC_HANDLE,
&rx_count, &tx_count);
Expand Down Expand Up @@ -286,7 +282,7 @@ static int ehv_bc_console_byte_channel_send(unsigned int handle, const char *s,
static void ehv_bc_console_write(struct console *co, const char *s,
unsigned int count)
{
unsigned int handle = (unsigned int)co->data;
unsigned int handle = (uintptr_t)co->data;
char s2[EV_BYTE_CHANNEL_MAX_BYTES];
unsigned int i, j = 0;
char c;
Expand Down Expand Up @@ -352,7 +348,7 @@ static int __init ehv_bc_console_init(void)
CONFIG_PPC_EARLY_DEBUG_EHV_BC_HANDLE);
#endif

ehv_bc_console.data = (void *)stdout_bc;
ehv_bc_console.data = (void *)(uintptr_t)stdout_bc;

/* add_preferred_console() must be called before register_console(),
otherwise it won't work. However, we don't want to enumerate all the
Expand Down

0 comments on commit 5dca773

Please sign in to comment.