X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=drivers%2Fvideo%2Fcg3.c;h=558d73a948a0d836c73ea20c26440229738ba581;hb=c2f0e8c803ceba530060ec9bb9c74a06c2c3d833;hp=30eedf79322c4dcff534da06fe7938a5753d112c;hpb=5a0e3ad6af8660be21ca98a971cd00f331318c05;p=safe%2Fjmp%2Flinux-2.6 diff --git a/drivers/video/cg3.c b/drivers/video/cg3.c index 30eedf7..558d73a 100644 --- a/drivers/video/cg3.c +++ b/drivers/video/cg3.c @@ -349,7 +349,7 @@ static int __devinit cg3_do_default_mode(struct cg3_par *par) static int __devinit cg3_probe(struct of_device *op, const struct of_device_id *match) { - struct device_node *dp = op->node; + struct device_node *dp = op->dev.of_node; struct fb_info *info; struct cg3_par *par; int linebytes, err; @@ -463,8 +463,11 @@ static const struct of_device_id cg3_match[] = { MODULE_DEVICE_TABLE(of, cg3_match); static struct of_platform_driver cg3_driver = { - .name = "cg3", - .match_table = cg3_match, + .driver = { + .name = "cg3", + .owner = THIS_MODULE, + .of_match_table = cg3_match, + }, .probe = cg3_probe, .remove = __devexit_p(cg3_remove), };