pcmcia: dev_node removal (write-only drivers)
[safe/jmp/linux-2.6] / drivers / mtd / maps / pcmciamtd.c
index 689d6a7..87b2b8f 100644 (file)
@@ -52,7 +52,6 @@ static const int debug = 0;
 
 struct pcmciamtd_dev {
        struct pcmcia_device    *p_dev;
-       dev_node_t      node;           /* device node */
        caddr_t         win_base;       /* ioremapped address of PCMCIA window */
        unsigned int    win_size;       /* size of window */
        unsigned int    offset;         /* offset into card the window currently points at */
@@ -647,9 +646,7 @@ static int pcmciamtd_config(struct pcmcia_device *link)
                pcmciamtd_release(link);
                return -ENODEV;
        }
-       snprintf(dev->node.dev_name, sizeof(dev->node.dev_name), "mtd%d", mtd->index);
        info("mtd%d: %s", mtd->index, mtd->name);
-       link->dev_node = &dev->node;
        return 0;
 
  failed: