summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/core/subdev/device/nv04.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2012-07-10 16:45:24 +1000
committerBen Skeggs <bskeggs@redhat.com>2012-10-03 13:12:46 +1000
commit8aceb7de47ea2491abc1a577dc875b19e9947a54 (patch)
tree3645a1980be8d4d2b1689475d9e72fd7a4b9c8b9 /drivers/gpu/drm/nouveau/core/subdev/device/nv04.c
parent4196faa8623264b79279a06fd186654c959f2767 (diff)
downloadop-kernel-dev-8aceb7de47ea2491abc1a577dc875b19e9947a54.zip
op-kernel-dev-8aceb7de47ea2491abc1a577dc875b19e9947a54.tar.gz
drm/nouveau/clk: implement stub clock subdev
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/subdev/device/nv04.c')
-rw-r--r--drivers/gpu/drm/nouveau/core/subdev/device/nv04.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/device/nv04.c b/drivers/gpu/drm/nouveau/core/subdev/device/nv04.c
index e0ebbe1..e24e74b 100644
--- a/drivers/gpu/drm/nouveau/core/subdev/device/nv04.c
+++ b/drivers/gpu/drm/nouveau/core/subdev/device/nv04.c
@@ -25,6 +25,7 @@
#include <subdev/device.h>
#include <subdev/bios.h>
#include <subdev/i2c.h>
+#include <subdev/clock.h>
int
nv04_identify(struct nouveau_device *device)
@@ -33,10 +34,12 @@ nv04_identify(struct nouveau_device *device)
case 0x04:
device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass;
device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass;
+ device->oclass[NVDEV_SUBDEV_CLOCK ] = &nv04_clock_oclass;
break;
case 0x05:
device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass;
device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass;
+ device->oclass[NVDEV_SUBDEV_CLOCK ] = &nv04_clock_oclass;
break;
default:
nv_fatal(device, "unknown RIVA chipset\n");
OpenPOWER on IntegriCloud