drm/i915: Rename "_load"/"_unload" to match PCI entry points
Current names of i915_driver_load/unload() functions originate in legacy DRM stubs. Reduce nomenclature ambiguity by renaming them to match their current use as helpers called from PCI entry points. Suggested by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20190712112429.740-3-janusz.krzysztofik@linux.intel.com
This commit is contained in:

committed by
Chris Wilson

parent
b5893ffc27
commit
b01558e56f
@@ -878,7 +878,7 @@ static void i915_pci_remove(struct pci_dev *pdev)
|
||||
if (!dev) /* driver load aborted, nothing to cleanup */
|
||||
return;
|
||||
|
||||
i915_driver_unload(dev);
|
||||
i915_driver_remove(dev);
|
||||
drm_dev_put(dev);
|
||||
|
||||
pci_set_drvdata(pdev, NULL);
|
||||
@@ -953,7 +953,7 @@ static int i915_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
||||
if (vga_switcheroo_client_probe_defer(pdev))
|
||||
return -EPROBE_DEFER;
|
||||
|
||||
err = i915_driver_load(pdev, ent);
|
||||
err = i915_driver_probe(pdev, ent);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
Reference in New Issue
Block a user