oxu210hp-hcd.c: struct device - replace bus_id with dev_name(), dev_set_name()
[linux-2.6] / drivers / spi / spi_lm70llp.c
index 4ea68ac..af65267 100644 (file)
@@ -82,7 +82,7 @@ struct spi_lm70llp {
        struct pardevice        *pd;
        struct spi_device       *spidev_lm70;
        struct spi_board_info   info;
-       struct class_device     *cdev;
+       //struct device         *dev;
 };
 
 /* REVISIT : ugly global ; provides "exclusive open" facility */
@@ -287,7 +287,7 @@ static void spi_lm70llp_attach(struct parport *p)
        pp->spidev_lm70 = spi_new_device(pp->bitbang.master, &pp->info);
        if (pp->spidev_lm70)
                dev_dbg(&pp->spidev_lm70->dev, "spidev_lm70 at %s\n",
-                               pp->spidev_lm70->dev.bus_id);
+                               dev_name(&pp->spidev_lm70->dev));
        else {
                printk(KERN_WARNING "%s: spi_new_device failed\n", DRVNAME);
                status = -ENODEV;