]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/mtd/devices/slram.c
mtd: harmonize mtd_point interface implementation
[karo-tx-linux.git] / drivers / mtd / devices / slram.c
index 842e4890d771658cb850dce052102ba40427c21e..ccd39ff509b168895e34d4b0235eb79544f69ae1 100644 (file)
@@ -99,9 +99,6 @@ static int slram_point(struct mtd_info *mtd, loff_t from, size_t len,
 {
        slram_priv_t *priv = mtd->priv;
 
-       /* can we return a physical address with this driver? */
-       if (phys)
-               return -EINVAL;
        *virt = priv->start + from;
        *retlen = len;
        return(0);