Skip to contentSkip to conversation

fix a warning on drivers/mtd/nand/cafe_nand.c

PATCH In review Zhenwen Xu 2 participants 2 messages Apr 10, 2009 – Apr 17, 2009

Subsystems (2)
lore
Share & tools
lore

Zhenwen Xu

author
#0 lore raw

PATCH 1/1 fix a warning on drivers/mtd/nand/cafe_nand.c

fix this warning:

drivers/mtd/nand/cafe_nand.c: In function ‘cafe_nand_probe’:
drivers/mtd/nand/cafe_nand.c:730: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type

Quoted 1 line

From 8f877dd15fedd434e2f5d95a1bc5f4e528dc4528 Mon Sep 17 00:00:00 2001

From: Zhenwen Xu <[email protected]>
Date: Fri, 10 Apr 2009 20:35:30 +0800
Subject: [PATCH] fix a warning on drivers/mtd/nand/cafe_nand.c

---
 drivers/mtd/nand/cafe_nand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/nand/cafe_nand.c +1 -1
index 7c5b257..29acd06 100644
@@ -332,7 +332,7 @@ static void cafe_select_chip(struct mtd_info *mtd, int chipnr)
 		cafe->ctl1 &= ~CTRL1_CHIPSELECT;
 }
 
-static int cafe_nand_interrupt(int irq, void *id)
+static irqreturn_t cafe_nand_interrupt(int irq, void *id)
 {
 	struct mtd_info *mtd = id;
 	struct cafe_priv *cafe = mtd->priv;
Signature · 7 lines
1.5.6.5

-- 
---------------------------------
Zhenwen Xu - Open and Free
Home Page:	http://zhwen.org
My Studio:	http://dim4.cn
#1 lore raw
Quoted 11 lines · Zhenwen Xu

fix this warning:

drivers/mtd/nand/cafe_nand.c: In function ‘cafe_nand_probe’:
drivers/mtd/nand/cafe_nand.c:730: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type

From 8f877dd15fedd434e2f5d95a1bc5f4e528dc4528 Mon Sep 17 00:00:00 2001
From: Zhenwen Xu <[email protected]>
Date: Fri, 10 Apr 2009 20:35:30 +0800
Subject: [PATCH] fix a warning on drivers/mtd/nand/cafe_nand.c

Quoted 4 lines
---
 drivers/mtd/nand/cafe_nand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Pushed, to l2-mtd-2.6.git. This does not guarantee anything, it just mean I'll ping dwmw2 to pull from that tree.

Signature · 2 lines
Best regards,
Artem Bityutskiy (Битюцкий Артём)