]> git.baikalelectronics.ru Git - kernel.git/commit
drm: cope with platformdev->id == -1
authorRob Clark <rob@ti.com>
Tue, 6 Mar 2012 16:20:36 +0000 (10:20 -0600)
committerDave Airlie <airlied@redhat.com>
Wed, 7 Mar 2012 14:03:40 +0000 (14:03 +0000)
commita3a1e2081b6439608b11f92bbcee39cee880b2a6
tree7865567a22ff38c4cce39ade316f46b872e99291
parent06c2fabe5ccebc955c7c3feec1bf691c0a5c0253
drm: cope with platformdev->id == -1

If there are not multiple instances of a platform device, the id
should apparently be set to -1.  Which results in a odd looking
bus-id like "platform:foodrm:-1".  Probably we should just treat
this case as id 0.

Signed-off-by: Rob Clark <rob@ti.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_platform.c