Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81295
b: refs/heads/master
c: e509184
h: refs/heads/master
i:
  81293: 80c5adf
  81291: beabdd3
  81287: c5064e1
  81279: 0d6feb9
v: v3
  • Loading branch information
Paul Gortmaker authored and Kumar Gala committed Jan 24, 2008
1 parent be555af commit 1e72b54
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: d7584ed2b994a572326650b0c4d2c25961e6f49d
refs/heads/master: e5091842dc067c0c9ae0d8a26f9e2eecf7df34f3
12 changes: 6 additions & 6 deletions trunk/arch/powerpc/platforms/85xx/mpc85xx_ads.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ static void cpm2_cascade(unsigned int irq, struct irq_desc *desc)
{
int cascade_irq;

while ((cascade_irq = cpm2_get_irq()) >= 0) {
while ((cascade_irq = cpm2_get_irq()) >= 0)
generic_handle_irq(cascade_irq);
}

desc->chip->eoi(irq);
}

Expand All @@ -70,13 +70,12 @@ static void __init mpc85xx_ads_pic_init(void)
#endif

np = of_find_node_by_type(np, "open-pic");

if (np == NULL) {
if (!np) {
printk(KERN_ERR "Could not find open-pic node\n");
return;
}

if(of_address_to_resource(np, 0, &r)) {
if (of_address_to_resource(np, 0, &r)) {
printk(KERN_ERR "Could not map mpic register space\n");
of_node_put(np);
return;
Expand All @@ -100,6 +99,7 @@ static void __init mpc85xx_ads_pic_init(void)
irq = irq_of_parse_and_map(np, 0);

cpm2_pic_init(np);
of_node_put(np);
set_irq_chained_handler(irq, cpm2_cascade);
#endif
}
Expand All @@ -112,7 +112,7 @@ struct cpm_pin {
int port, pin, flags;
};

static struct cpm_pin mpc8560_ads_pins[] = {
static const struct cpm_pin mpc8560_ads_pins[] = {
/* SCC1 */
{3, 29, CPM_PIN_OUTPUT | CPM_PIN_PRIMARY},
{3, 30, CPM_PIN_OUTPUT | CPM_PIN_SECONDARY},
Expand Down

0 comments on commit 1e72b54

Please sign in to comment.