Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170397
b: refs/heads/master
c: d135009
h: refs/heads/master
i:
  170395: 95ed71b
v: v3
  • Loading branch information
David S. Miller committed Nov 5, 2009
1 parent 1cc1793 commit e85fa1e
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 384a17b284b9dc92b480cf388310a25e255bac8a
refs/heads/master: d13500981e7df7f0e84d7f37f85d720cefe6043e
12 changes: 6 additions & 6 deletions trunk/drivers/serial/apbuart.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <linux/io.h>
#include <linux/serial_core.h>
#include <asm/irq.h>
#include <asm/oplib.h>

#include "apbuart.h"

Expand Down Expand Up @@ -596,10 +595,9 @@ static struct of_platform_driver grlib_apbuart_of_driver = {
static void grlib_apbuart_configure(void)
{
static int enum_done;
struct device_node *np;
struct device_node *np, *rp;
struct uart_port *port = NULL;

int node;
const u32 *prop;
int freq_khz;
int v = 0, d = 0;
unsigned int addr;
Expand All @@ -610,8 +608,10 @@ static void grlib_apbuart_configure(void)
return;

/* Get bus frequency */
node = prom_getchild(prom_root_node);
freq_khz = prom_getint(node, "clock-frequency");
rp = of_find_node_by_name(NULL, "/");
rp = of_get_next_child(rp, NULL);
prop = of_get_property(rp, "clock-frequency", NULL);
freq_khz = *prop;

line = 0;
for_each_matching_node(np, apbuart_match) {
Expand Down

0 comments on commit e85fa1e

Please sign in to comment.