aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/via
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2009-01-05 16:10:05 -0500
committerDave Airlie <airlied@redhat.com>2009-03-13 00:23:58 -0400
commit8e1004580e0c862cb6bbe2ff8e496f846c54052f (patch)
treef75ca2cebf77d2746613af8e5b61998057df5387 /drivers/gpu/drm/via
parent112b715e8e2f9ef7b96930888bb099ce10b4c3cc (diff)
drm: Drop unused and broken dri_library_name sysfs attribute.
The kernel shouldn't be in the business of telling user space which driver to load. The kernel defers mapping PCI IDs to module names to user space and we should do the same for DRI drivers. And in fact, that's how it does work today. Nothing uses the dri_library_name attribute, and the attribute is in fact broken. For intel devices, it falls back to the default behaviour of returning the kernel module name as the DRI driver name, which doesn't work for i965 devices. Nobody has ever hit this problem or filed a bug about this. Signed-off-by: Kristian Høgsberg <krh@redhat.com> Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/gpu/drm/via')
-rw-r--r--drivers/gpu/drm/via/via_drv.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/via/via_drv.c b/drivers/gpu/drm/via/via_drv.c
index 0993b441fc42..bc2f51843005 100644
--- a/drivers/gpu/drm/via/via_drv.c
+++ b/drivers/gpu/drm/via/via_drv.c
@@ -28,11 +28,6 @@
28 28
29#include "drm_pciids.h" 29#include "drm_pciids.h"
30 30
31static int dri_library_name(struct drm_device *dev, char *buf)
32{
33 return snprintf(buf, PAGE_SIZE, "unichrome");
34}
35
36static struct pci_device_id pciidlist[] = { 31static struct pci_device_id pciidlist[] = {
37 viadrv_PCI_IDS 32 viadrv_PCI_IDS
38}; 33};
@@ -52,7 +47,6 @@ static struct drm_driver driver = {
52 .irq_uninstall = via_driver_irq_uninstall, 47 .irq_uninstall = via_driver_irq_uninstall,
53 .irq_handler = via_driver_irq_handler, 48 .irq_handler = via_driver_irq_handler,
54 .dma_quiescent = via_driver_dma_quiescent, 49 .dma_quiescent = via_driver_dma_quiescent,
55 .dri_library_name = dri_library_name,
56 .reclaim_buffers = drm_core_reclaim_buffers, 50 .reclaim_buffers = drm_core_reclaim_buffers,
57 .reclaim_buffers_locked = NULL, 51 .reclaim_buffers_locked = NULL,
58 .reclaim_buffers_idlelocked = via_reclaim_buffers_locked, 52 .reclaim_buffers_idlelocked = via_reclaim_buffers_locked,