mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
drm/xe/display: Drop xe_display_driver_set_hooks()
This function is now no-op. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Link: https://patch.msgid.link/20260512183342.3374-7-michal.wajdeczko@intel.com
This commit is contained in:
parent
7caa8cad3a
commit
839ffd94f0
|
|
@ -70,22 +70,6 @@ bool xe_display_driver_probe_defer(struct pci_dev *pdev)
|
|||
return intel_display_driver_probe_defer(pdev);
|
||||
}
|
||||
|
||||
/**
|
||||
* xe_display_driver_set_hooks - Add driver flags and hooks for display
|
||||
* @driver: DRM device driver
|
||||
*
|
||||
* Set features and function hooks in @driver that are needed for driving the
|
||||
* display IP. This sets the driver's capability of driving display, regardless
|
||||
* if the device has it enabled
|
||||
*
|
||||
* Note: This is called before xe or display device creation.
|
||||
*/
|
||||
void xe_display_driver_set_hooks(struct drm_driver *driver)
|
||||
{
|
||||
if (!xe_modparam.probe_display)
|
||||
return;
|
||||
}
|
||||
|
||||
static void unset_display_features(struct xe_device *xe)
|
||||
{
|
||||
xe->drm.driver_features &= ~XE_DISPLAY_DRIVER_FEATURES;
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ struct xe_device;
|
|||
#if IS_ENABLED(CONFIG_DRM_XE_DISPLAY)
|
||||
|
||||
bool xe_display_driver_probe_defer(struct pci_dev *pdev);
|
||||
void xe_display_driver_set_hooks(struct drm_driver *driver);
|
||||
|
||||
int xe_display_driver_fbdev_probe(struct drm_fb_helper *fbh,
|
||||
struct drm_fb_helper_surface_size *sizes);
|
||||
|
||||
|
|
@ -56,7 +56,6 @@ void xe_display_pm_runtime_resume(struct xe_device *xe);
|
|||
.fbdev_probe = NULL
|
||||
|
||||
static inline int xe_display_driver_probe_defer(struct pci_dev *pdev) { return 0; }
|
||||
static inline void xe_display_driver_set_hooks(struct drm_driver *driver) { }
|
||||
|
||||
static inline int xe_display_probe(struct xe_device *xe) { return 0; }
|
||||
|
||||
|
|
|
|||
|
|
@ -491,8 +491,6 @@ struct xe_device *xe_device_create(struct pci_dev *pdev,
|
|||
driver = &admin_only_driver;
|
||||
#endif
|
||||
|
||||
xe_display_driver_set_hooks(driver);
|
||||
|
||||
err = aperture_remove_conflicting_pci_devices(pdev, driver->name);
|
||||
if (err)
|
||||
return ERR_PTR(err);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user