CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2026/09/10 19:18:09

Modified files:
        sys/dev/pci/drm: drm_drv.c drm_linux.c 
        sys/dev/pci/drm/include/drm: drm_device.h 

Log message:
correct dma_tag_lookup() loop

drm_cd.cd_ndevs[] has pointers to drm_softc not drm_device

Currently, dma_tag_lookup() is only used by the apldcp/apldrm drivers.
At the start of the softc for both of those is struct platform_device.
If the loop doesn't match the the function argument is cast to
struct platform_device *, so the problem was not noticed.

discussed with kettenis@ and apldcp/apldrm tested on m1 mac mini

Reply via email to