Rev 3255 | Rev 3298 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3255 | Rev 3263 | ||
---|---|---|---|
Line 1545... | Line 1545... | ||
1545 | pci_dev_put(dev_priv->bridge_dev); |
1545 | pci_dev_put(dev_priv->bridge_dev); |
1546 | kfree(dev->dev_private); |
1546 | kfree(dev->dev_private); |
Line 1547... | Line 1547... | ||
1547 | 1547 | ||
1548 | return 0; |
1548 | return 0; |
- | 1549 | } |
|
Line 1549... | Line 1550... | ||
1549 | } |
1550 | #endif |
1550 | 1551 | ||
1551 | int i915_driver_open(struct drm_device *dev, struct drm_file *file) |
1552 | int i915_driver_open(struct drm_device *dev, struct drm_file *file) |
Line 1552... | Line 1553... | ||
1552 | { |
1553 | { |
- | 1554 | struct drm_i915_file_private *file_priv; |
|
- | 1555 | ||
1553 | struct drm_i915_file_private *file_priv; |
1556 | DRM_DEBUG_DRIVER("\n"); |
1554 | 1557 | ENTER(); |
|
1555 | DRM_DEBUG_DRIVER("\n"); |
1558 | |
Line 1556... | Line 1559... | ||
1556 | file_priv = kmalloc(sizeof(*file_priv), GFP_KERNEL); |
1559 | file_priv = kmalloc(sizeof(*file_priv), GFP_KERNEL); |
Line 1562... | Line 1565... | ||
1562 | spin_lock_init(&file_priv->mm.lock); |
1565 | spin_lock_init(&file_priv->mm.lock); |
1563 | INIT_LIST_HEAD(&file_priv->mm.request_list); |
1566 | INIT_LIST_HEAD(&file_priv->mm.request_list); |
Line 1564... | Line 1567... | ||
1564 | 1567 | ||
Line -... | Line 1568... | ||
- | 1568 | idr_init(&file_priv->context_idr); |
|
1565 | idr_init(&file_priv->context_idr); |
1569 | |
1566 | 1570 | LEAVE(); |
|
Line -... | Line 1571... | ||
- | 1571 | return 0; |
|
1567 | return 0; |
1572 | } |
1568 | } |
1573 | |
1569 | 1574 | #if 0 |
|
1570 | /** |
1575 | /** |
1571 | * i915_driver_lastclose - clean up after all DRM clients have exited |
1576 | * i915_driver_lastclose - clean up after all DRM clients have exited |