@@ -204,9 +204,9 @@ static const struct drm_edid *bochs_hw_read_edid(struct drm_connector *connector
204
204
return drm_edid_read_custom (connector , bochs_get_edid_block , bochs );
205
205
}
206
206
207
- static int bochs_hw_init (struct drm_device * dev )
207
+ static int bochs_hw_init (struct bochs_device * bochs )
208
208
{
209
- struct bochs_device * bochs = dev -> dev_private ;
209
+ struct drm_device * dev = bochs -> dev ;
210
210
struct pci_dev * pdev = to_pci_dev (dev -> dev );
211
211
unsigned long addr , size , mem , ioaddr , iosize ;
212
212
u16 id ;
@@ -481,9 +481,9 @@ static const struct drm_connector_funcs bochs_connector_connector_funcs = {
481
481
.atomic_destroy_state = drm_atomic_helper_connector_destroy_state ,
482
482
};
483
483
484
- static void bochs_connector_init (struct drm_device * dev )
484
+ static void bochs_connector_init (struct bochs_device * bochs )
485
485
{
486
- struct bochs_device * bochs = dev -> dev_private ;
486
+ struct drm_device * dev = bochs -> dev ;
487
487
struct drm_connector * connector = & bochs -> connector ;
488
488
489
489
drm_connector_init (dev , connector , & bochs_connector_connector_funcs ,
@@ -516,7 +516,7 @@ static int bochs_kms_init(struct bochs_device *bochs)
516
516
517
517
bochs -> dev -> mode_config .funcs = & bochs_mode_funcs ;
518
518
519
- bochs_connector_init (bochs -> dev );
519
+ bochs_connector_init (bochs );
520
520
drm_simple_display_pipe_init (bochs -> dev ,
521
521
& bochs -> pipe ,
522
522
& bochs_pipe_funcs ,
@@ -544,7 +544,7 @@ static int bochs_load(struct drm_device *dev)
544
544
dev -> dev_private = bochs ;
545
545
bochs -> dev = dev ;
546
546
547
- ret = bochs_hw_init (dev );
547
+ ret = bochs_hw_init (bochs );
548
548
if (ret )
549
549
return ret ;
550
550
0 commit comments