aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv50_display.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv50_display.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv50_display.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c
index 9708b94a0a7b..f408e105a0cd 100644
--- a/drivers/gpu/drm/nouveau/nv50_display.c
+++ b/drivers/gpu/drm/nouveau/nv50_display.c
@@ -32,6 +32,7 @@
32#include "nouveau_fb.h" 32#include "nouveau_fb.h"
33#include "nouveau_fbcon.h" 33#include "nouveau_fbcon.h"
34#include "nouveau_ramht.h" 34#include "nouveau_ramht.h"
35#include "nouveau_gpio.h"
35#include "drm_crtc_helper.h" 36#include "drm_crtc_helper.h"
36 37
37static void nv50_display_isr(struct drm_device *); 38static void nv50_display_isr(struct drm_device *);
@@ -140,8 +141,6 @@ nv50_display_sync(struct drm_device *dev)
140int 141int
141nv50_display_init(struct drm_device *dev) 142nv50_display_init(struct drm_device *dev)
142{ 143{
143 struct drm_nouveau_private *dev_priv = dev->dev_private;
144 struct nouveau_gpio_engine *pgpio = &dev_priv->engine.gpio;
145 struct drm_connector *connector; 144 struct drm_connector *connector;
146 struct nouveau_channel *evo; 145 struct nouveau_channel *evo;
147 int ret, i; 146 int ret, i;
@@ -240,11 +239,7 @@ nv50_display_init(struct drm_device *dev)
240 /* enable hotplug interrupts */ 239 /* enable hotplug interrupts */
241 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { 240 list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
242 struct nouveau_connector *conn = nouveau_connector(connector); 241 struct nouveau_connector *conn = nouveau_connector(connector);
243 242 nouveau_gpio_irq(dev, 0, conn->hpd, 0xff, true);
244 if (conn->hpd == DCB_GPIO_UNUSED)
245 continue;
246
247 pgpio->irq_enable(dev, conn->hpd, true);
248 } 243 }
249 244
250 ret = nv50_evo_init(dev); 245 ret = nv50_evo_init(dev);