pci.c (688d794c4c3f8b08c814381ee2edd3ede5856056) pci.c (0984c8910426371205da0b60fc1dae64a996fb64)
1/*
2 * linux/drivers/mtd/maps/pci.c
3 *
4 * Copyright (C) 2001 Russell King, All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

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

278 map->dev = dev;
279 map->exit = info->exit;
280 map->translate = info->translate;
281
282 err = info->init(dev, map);
283 if (err)
284 goto release;
285
1/*
2 * linux/drivers/mtd/maps/pci.c
3 *
4 * Copyright (C) 2001 Russell King, All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.

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

278 map->dev = dev;
279 map->exit = info->exit;
280 map->translate = info->translate;
281
282 err = info->init(dev, map);
283 if (err)
284 goto release;
285
286 /* tsk - do_map_probe should take const char * */
287 mtd = do_map_probe((char *)info->map_name, &map->map);
286 mtd = do_map_probe(info->map_name, &map->map);
288 err = -ENODEV;
289 if (!mtd)
290 goto release;
291
292 mtd->owner = THIS_MODULE;
293 mtd_device_register(mtd, NULL, 0);
294
295 pci_set_drvdata(dev, mtd);

--- 41 unchanged lines hidden ---
287 err = -ENODEV;
288 if (!mtd)
289 goto release;
290
291 mtd->owner = THIS_MODULE;
292 mtd_device_register(mtd, NULL, 0);
293
294 pci_set_drvdata(dev, mtd);

--- 41 unchanged lines hidden ---