]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/mips/rb532/devices.c
MIPS: RB532: GPIO register offsets are relative to GPIOBASE
[linux-2.6-omap-h63xx.git] / arch / mips / rb532 / devices.c
index 2f22d714d5b09487c5535f49cce0018dcda4d070..c1c29181bd4641de62977a19107a4d5ad64734c0 100644 (file)
@@ -118,7 +118,7 @@ static struct platform_device cf_slot0 = {
 /* Resources and device for NAND */
 static int rb532_dev_ready(struct mtd_info *mtd)
 {
-       return readl(IDT434_REG_BASE + GPIOD) & GPIO_RDY;
+       return gpio_get_value(GPIO_RDY);
 }
 
 static void rb532_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl)