aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/files/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ath79/files/drivers')
-rw-r--r--target/linux/ath79/files/drivers/mtd/nand/raw/ar934x_nand.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/target/linux/ath79/files/drivers/mtd/nand/raw/ar934x_nand.c b/target/linux/ath79/files/drivers/mtd/nand/raw/ar934x_nand.c
index 70aa396e25..63abc4a8d8 100644
--- a/target/linux/ath79/files/drivers/mtd/nand/raw/ar934x_nand.c
+++ b/target/linux/ath79/files/drivers/mtd/nand/raw/ar934x_nand.c
@@ -1082,14 +1082,22 @@ static int ar934x_nfc_write_page(struct nand_chip *chip,
return err;
}
-static int ar934x_nfc_hw_reset_assert(struct ar934x_nfc *nfc) {
- reset_control_assert(nfc->rst);
+static int ar934x_nfc_hw_reset_assert(struct ar934x_nfc *nfc)
+{
+ int err;
+
+ err = reset_control_assert(nfc->rst);
udelay(250);
+ return err;
}
-static int ar934x_nfc_hw_reset_deassert(struct ar934x_nfc *nfc) {
- reset_control_deassert(nfc->rst);
+static int ar934x_nfc_hw_reset_deassert(struct ar934x_nfc *nfc)
+{
+ int err;
+
+ err = reset_control_deassert(nfc->rst);
udelay(250);
+ return err;
}
static int ar934x_nfc_hw_init(struct ar934x_nfc *nfc)