• David Herrmann's avatar
    drm: merge device setup into drm_dev_register() · c22f0ace
    David Herrmann authored
    All bus drivers do device setup themselves. This requires us to adjust all
    of them if we introduce new core features. Thus, merge all these into a
    uniform drm_dev_register() helper.
    
    Note that this removes the drm_lastclose() error path for AGP as it is
    horribly broken. Moreover, no bus driver called this in any other error
    path either. Instead, we use the recently introduced AGP cleanup helpers.
    
    We also keep a DRIVER_MODESET condition around pci_set_drvdata() to keep
    semantics.
    
    [airlied: keep passing flags through so drivers don't oops on load]
    Signed-off-by: default avatarDavid Herrmann <dh.herrmann@gmail.com>
    Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
    c22f0ace
drm_pci.c 12.1 KB