]> 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 d3474a48d097b4d08d8619310a85b06178ccb84b..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;