map_rom.c (3c3c10bba1e4ccb75b41442e45c1a072f6cded19) map_rom.c (664addc248d2fed68d013d26ff2fc796d7134259)
1/*
2 * Common code to handle map devices which are simple ROM
3 * (C) 2000 Red Hat. GPL'd.
4 */
5
6#include <linux/module.h>
7#include <linux/types.h>
8#include <linux/kernel.h>

--- 71 unchanged lines hidden (view full) ---

80
81static void maprom_nop(struct mtd_info *mtd)
82{
83 /* Nothing to see here */
84}
85
86static int maprom_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf)
87{
1/*
2 * Common code to handle map devices which are simple ROM
3 * (C) 2000 Red Hat. GPL'd.
4 */
5
6#include <linux/module.h>
7#include <linux/types.h>
8#include <linux/kernel.h>

--- 71 unchanged lines hidden (view full) ---

80
81static void maprom_nop(struct mtd_info *mtd)
82{
83 /* Nothing to see here */
84}
85
86static int maprom_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf)
87{
88 printk(KERN_NOTICE "maprom_write called\n");
89 return -EIO;
88 return -EROFS;
90}
91
92static int maprom_erase (struct mtd_info *mtd, struct erase_info *info)
93{
94 /* We do our best 8) */
95 return -EROFS;
96}
97

--- 17 unchanged lines hidden ---
89}
90
91static int maprom_erase (struct mtd_info *mtd, struct erase_info *info)
92{
93 /* We do our best 8) */
94 return -EROFS;
95}
96

--- 17 unchanged lines hidden ---