static int i915_probe(device_t kdev) { const struct intel_device_info *info; int error; error = drm_probe_helper(kdev, i915_pciidlist); if (error != 0) return (-error); info = i915_get_device_id(pci_get_device(kdev)); if (info == NULL) return (ENXIO); return (0); }
static int radeon_probe(device_t kdev) { return (-drm_probe_helper(kdev, pciidlist)); }