Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106420
b: refs/heads/master
c: 62fd71f
h: refs/heads/master
v: v3
  • Loading branch information
Håvard Skinnemoen authored and David Woodhouse committed Jun 7, 2008
1 parent 3db49e5 commit 55cf718
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 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: aa83570e23e626fe8dd1253f17e6d175507025f1
refs/heads/master: 62fd71fe710886ba449e932ad7877f4a8340c2d4
12 changes: 5 additions & 7 deletions trunk/drivers/mtd/nand/at91_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@
#include <linux/mtd/nand.h>
#include <linux/mtd/partitions.h>

#include <asm/gpio.h>
#include <asm/io.h>
#include <asm/sizes.h>

#include <asm/hardware.h>
#include <asm/arch/board.h>
#include <asm/arch/gpio.h>

#ifdef CONFIG_MTD_NAND_AT91_ECC_HW
#define hard_ecc 1
Expand Down Expand Up @@ -99,7 +97,7 @@ struct at91_nand_host {
static void at91_nand_enable(struct at91_nand_host *host)
{
if (host->board->enable_pin)
at91_set_gpio_value(host->board->enable_pin, 0);
gpio_set_value(host->board->enable_pin, 0);
}

/*
Expand All @@ -108,7 +106,7 @@ static void at91_nand_enable(struct at91_nand_host *host)
static void at91_nand_disable(struct at91_nand_host *host)
{
if (host->board->enable_pin)
at91_set_gpio_value(host->board->enable_pin, 1);
gpio_set_value(host->board->enable_pin, 1);
}

/*
Expand Down Expand Up @@ -142,7 +140,7 @@ static int at91_nand_device_ready(struct mtd_info *mtd)
struct nand_chip *nand_chip = mtd->priv;
struct at91_nand_host *host = nand_chip->priv;

return at91_get_gpio_value(host->board->rdy_pin);
return gpio_get_value(host->board->rdy_pin);
}

/*
Expand Down Expand Up @@ -447,7 +445,7 @@ static int __init at91_nand_probe(struct platform_device *pdev)
at91_nand_enable(host);

if (host->board->det_pin) {
if (at91_get_gpio_value(host->board->det_pin)) {
if (gpio_get_value(host->board->det_pin)) {
printk ("No SmartMedia card inserted.\n");
res = ENXIO;
goto out;
Expand Down

0 comments on commit 55cf718

Please sign in to comment.