X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fblock%2Fswim3.c;h=ed6fb91123abb67577f6f309f0171a6d7e0cb142;hb=3975d16760d4be7402d1067c548c30c427971331;hp=59ca2b77b574dd70956e6d818a63831c12fb6636;hpb=18e41da89d55014d25b9a24502ee92b7f50599f9;p=pandora-kernel.git diff --git a/drivers/block/swim3.c b/drivers/block/swim3.c index 59ca2b77b574..ed6fb91123ab 100644 --- a/drivers/block/swim3.c +++ b/drivers/block/swim3.c @@ -1004,7 +1004,7 @@ static const struct block_device_operations floppy_fops = { static int swim3_add_device(struct macio_dev *mdev, int index) { - struct device_node *swim = mdev->ofdev.node; + struct device_node *swim = mdev->ofdev.dev.of_node; struct floppy_state *fs = &floppy_states[index]; int rc = -EBUSY; @@ -1159,8 +1159,10 @@ static struct of_device_id swim3_match[] = static struct macio_driver swim3_driver = { - .name = "swim3", - .match_table = swim3_match, + .driver = { + .name = "swim3", + .of_match_table = swim3_match, + }, .probe = swim3_attach, #if 0 .suspend = swim3_suspend,