drm/nouveau/therm: always initialize alarm_program_lock
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Wed, 30 Jan 2013 21:21:31 +0000 (22:21 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 20 Feb 2013 06:00:40 +0000 (16:00 +1000)
commit3969f05bb8d0d72ba974ab5f74a7bafb61dd16d0
treed95a1f891786cf3215edd221ee22cb19e7d2c5cf
parentb795016cd2c6aebfa40cbccb3bad4e0325815fb4
drm/nouveau/therm: always initialize alarm_program_lock

Fixes "BUG: spinlock bad magic" on module load for nva3+ cards.

Introduced in commit "drm/nouveau/therm: implement support for temperature
alarms".

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/therm/base.c
drivers/gpu/drm/nouveau/core/subdev/therm/nv50.c