]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/mtd/devices/phram.c
mtd: harmonize mtd_point interface implementation
[karo-tx-linux.git] / drivers / mtd / devices / phram.c
index d0e8dc69fe1c0c6fd5d608a404327bb165da5b07..9d2bf1741fb2905f346ed88878b469509c925fc5 100644 (file)
@@ -51,10 +51,6 @@ static int phram_erase(struct mtd_info *mtd, struct erase_info *instr)
 static int phram_point(struct mtd_info *mtd, loff_t from, size_t len,
                size_t *retlen, void **virt, resource_size_t *phys)
 {
-       /* can we return a physical address with this driver? */
-       if (phys)
-               return -EINVAL;
-
        *virt = mtd->priv + from;
        *retlen = len;
        return 0;
@@ -85,8 +81,6 @@ static int phram_write(struct mtd_info *mtd, loff_t to, size_t len,
        return 0;
 }
 
-
-
 static void unregister_devices(void)
 {
        struct phram_mtd_list *this, *safe;