diff options
Diffstat (limited to 'arch/powerpc/sysdev/fsl_msi.c')
-rw-r--r-- | arch/powerpc/sysdev/fsl_msi.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev/fsl_msi.c index 108d76fa8f1c..ee6a8a52ac71 100644 --- a/arch/powerpc/sysdev/fsl_msi.c +++ b/arch/powerpc/sysdev/fsl_msi.c | |||
@@ -273,8 +273,7 @@ static int fsl_of_msi_remove(struct platform_device *ofdev) | |||
273 | return 0; | 273 | return 0; |
274 | } | 274 | } |
275 | 275 | ||
276 | static int __devinit fsl_of_msi_probe(struct platform_device *dev, | 276 | static int __devinit fsl_of_msi_probe(struct platform_device *dev) |
277 | const struct of_device_id *match) | ||
278 | { | 277 | { |
279 | struct fsl_msi *msi; | 278 | struct fsl_msi *msi; |
280 | struct resource res; | 279 | struct resource res; |
@@ -282,11 +281,15 @@ static int __devinit fsl_of_msi_probe(struct platform_device *dev, | |||
282 | int rc; | 281 | int rc; |
283 | int virt_msir; | 282 | int virt_msir; |
284 | const u32 *p; | 283 | const u32 *p; |
285 | struct fsl_msi_feature *features = match->data; | 284 | struct fsl_msi_feature *features; |
286 | struct fsl_msi_cascade_data *cascade_data = NULL; | 285 | struct fsl_msi_cascade_data *cascade_data = NULL; |
287 | int len; | 286 | int len; |
288 | u32 offset; | 287 | u32 offset; |
289 | 288 | ||
289 | if (!dev->dev.of_match) | ||
290 | return -EINVAL; | ||
291 | features = dev->dev.of_match->data; | ||
292 | |||
290 | printk(KERN_DEBUG "Setting up Freescale MSI support\n"); | 293 | printk(KERN_DEBUG "Setting up Freescale MSI support\n"); |
291 | 294 | ||
292 | msi = kzalloc(sizeof(struct fsl_msi), GFP_KERNEL); | 295 | msi = kzalloc(sizeof(struct fsl_msi), GFP_KERNEL); |
@@ -411,7 +414,7 @@ static const struct of_device_id fsl_of_msi_ids[] = { | |||
411 | {} | 414 | {} |
412 | }; | 415 | }; |
413 | 416 | ||
414 | static struct of_platform_driver fsl_of_msi_driver = { | 417 | static struct platform_driver fsl_of_msi_driver = { |
415 | .driver = { | 418 | .driver = { |
416 | .name = "fsl-msi", | 419 | .name = "fsl-msi", |
417 | .owner = THIS_MODULE, | 420 | .owner = THIS_MODULE, |
@@ -423,7 +426,7 @@ static struct of_platform_driver fsl_of_msi_driver = { | |||
423 | 426 | ||
424 | static __init int fsl_of_msi_init(void) | 427 | static __init int fsl_of_msi_init(void) |
425 | { | 428 | { |
426 | return of_register_platform_driver(&fsl_of_msi_driver); | 429 | return platform_driver_register(&fsl_of_msi_driver); |
427 | } | 430 | } |
428 | 431 | ||
429 | subsys_initcall(fsl_of_msi_init); | 432 | subsys_initcall(fsl_of_msi_init); |