@@ -2567,14 +2567,14 @@ fore200e_load_and_start_fw(struct fore200e* fore200e)
25672567
25682568
25692569static int __devinit
2570- fore200e_register (struct fore200e * fore200e )
2570+ fore200e_register (struct fore200e * fore200e , struct device * parent )
25712571{
25722572 struct atm_dev * atm_dev ;
25732573
25742574 DPRINTK (2 , "device %s being registered\n" , fore200e -> name );
25752575
2576- atm_dev = atm_dev_register (fore200e -> bus -> proc_name , & fore200e_ops , -1 ,
2577- NULL );
2576+ atm_dev = atm_dev_register (fore200e -> bus -> proc_name , parent , & fore200e_ops ,
2577+ -1 , NULL );
25782578 if (atm_dev == NULL ) {
25792579 printk (FORE200E "unable to register device %s\n" , fore200e -> name );
25802580 return - ENODEV ;
@@ -2594,9 +2594,9 @@ fore200e_register(struct fore200e* fore200e)
25942594
25952595
25962596static int __devinit
2597- fore200e_init (struct fore200e * fore200e )
2597+ fore200e_init (struct fore200e * fore200e , struct device * parent )
25982598{
2599- if (fore200e_register (fore200e ) < 0 )
2599+ if (fore200e_register (fore200e , parent ) < 0 )
26002600 return - ENODEV ;
26012601
26022602 if (fore200e -> bus -> configure (fore200e ) < 0 )
@@ -2662,7 +2662,7 @@ static int __devinit fore200e_sba_probe(struct platform_device *op,
26622662
26632663 sprintf (fore200e -> name , "%s-%d" , bus -> model_name , index );
26642664
2665- err = fore200e_init (fore200e );
2665+ err = fore200e_init (fore200e , & op -> dev );
26662666 if (err < 0 ) {
26672667 fore200e_shutdown (fore200e );
26682668 kfree (fore200e );
@@ -2740,7 +2740,7 @@ fore200e_pca_detect(struct pci_dev *pci_dev, const struct pci_device_id *pci_ent
27402740
27412741 sprintf (fore200e -> name , "%s-%d" , bus -> model_name , index );
27422742
2743- err = fore200e_init (fore200e );
2743+ err = fore200e_init (fore200e , & pci_dev -> dev );
27442744 if (err < 0 ) {
27452745 fore200e_shutdown (fore200e );
27462746 goto out_free ;
0 commit comments