drm/nouveau: fix panels using straps-based mode detection
authorBen Skeggs <bskeggs@redhat.com>
Thu, 23 Sep 2010 06:44:01 +0000 (16:44 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 24 Sep 2010 00:05:28 +0000 (10:05 +1000)
commita5d60827a6bf9e7345f9e50423c1673ec4e14568
tree68a1005b810a5fd26e5290d20c57a2c89e2f88c2
parent0fbecd400dd0a82d465b3086f209681e8c54cb0f
drm/nouveau: fix panels using straps-based mode detection

nouveau_bios_fp_mode() zeroes the mode struct before filling in relevant
entries.  This nukes the mode id initialised by drm_mode_create(), and
causes warnings from idr when we try to remove the mode.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nouveau_connector.c