should fix panic on boot on x41 reported by Fred Crowson
{
struct drm_device *dev = &dev_priv->drm;
+ /* may be already called from attach */
+ if (dev_priv->bridge_dev != NULL)
+ return 0;
+
dev_priv->bridge_dev = malloc(sizeof(*dev_priv->bridge_dev),
M_DEVBUF, M_WAITOK);
dev_priv->bridge_dev->pc = dev->pdev->pc;
return;
}
dev->pdev->irq = -1;
+ i915_get_bridge_dev(dev_priv);
intel_init_stolen_res(dev_priv);
config_mountroot(self, inteldrm_attachhook);