Changeset 34278


Ignore:
Timestamp:
2012-11-20T17:29:42+01:00 (5 years ago)
Author:
juhosg
Message:

ar71xx: make ar934x_nfc driver compatible with 3.7

Also add compatibility patches for the currently
supported kernels.

Signed-off-by: Gabor Juhos <juhosg@…>

Location:
trunk/target/linux/ar71xx
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/drivers/mtd/nand/ar934x_nfc.c

    r33971 r34278  
    763763} 
    764764 
    765 static int 
    766 ar934x_nfc_verify_buf(struct mtd_info *mtd, const u_char *buf, int len) 
    767 { 
    768         int i; 
    769  
    770         for (i = 0; i < len; i++) 
    771                 if (buf[i] != ar934x_nfc_read_byte(mtd)) 
    772                         return -EFAULT; 
    773  
    774         return 0; 
    775 } 
    776  
    777765static void 
    778766ar934x_nfc_hw_init(struct ar934x_nfc *nfc) 
     
    10601048        nand->write_buf = ar934x_nfc_write_buf; 
    10611049        nand->read_buf = ar934x_nfc_read_buf; 
    1062         nand->verify_buf = ar934x_nfc_verify_buf; 
    10631050        nand->select_chip = ar934x_nfc_select_chip; 
    10641051 
  • trunk/target/linux/ar71xx/patches-3.3/a02-ar934x_nfc-add-NO_AUTOINCR-flag.patch

    r33971 r34278  
    22--- a/drivers/mtd/nand/ar934x_nfc.c 
    33+++ b/drivers/mtd/nand/ar934x_nfc.c 
    4 @@ -1051,6 +1051,7 @@ ar934x_nfc_probe(struct platform_device 
     4@@ -1039,6 +1039,7 @@ ar934x_nfc_probe(struct platform_device 
    55        else 
    66                mtd->name = dev_name(&pdev->dev); 
Note: See TracChangeset for help on using the changeset viewer.