drm/glint: add stubs and fill out drm_driver struct

Signed-off-by: Matt Turner <mattst88@gmail.com>
diff --git a/drivers/gpu/drm/glint/Makefile b/drivers/gpu/drm/glint/Makefile
index 19fa7ae..b178df6 100644
--- a/drivers/gpu/drm/glint/Makefile
+++ b/drivers/gpu/drm/glint/Makefile
@@ -3,6 +3,6 @@
 # Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
 
 ccflags-y := -Iinclude/drm
-glint-y   := glint_drv.o
+glint-y   := glint_drv.o glint_irq.o glint_kms.o
 
 obj-$(CONFIG_DRM_GLINT) += glint.o
diff --git a/drivers/gpu/drm/glint/glint_drv.c b/drivers/gpu/drm/glint/glint_drv.c
index 2e0d178..e0f821a 100644
--- a/drivers/gpu/drm/glint/glint_drv.c
+++ b/drivers/gpu/drm/glint/glint_drv.c
@@ -10,6 +10,40 @@
 	glint_PCI_IDS
 };
 
+static struct drm_driver driver = {
+	.driver_features = 0,
+	.load = glint_driver_load,
+	.unload = glint_driver_unload,
+	.irq_preinstall = glint_driver_irq_preinstall,
+	.irq_postinstall = glint_driver_irq_postinstall,
+	.irq_uninstall = glint_driver_irq_uninstall,
+	.irq_handler = glint_driver_irq_handler,
+	.reclaim_buffers = drm_core_reclaim_buffers,
+	.get_map_ofs = drm_core_get_map_ofs,
+	.get_reg_ofs = drm_core_get_reg_ofs,
+	.ioctls = glint_ioctls,
+	.fops = {
+		.owner = THIS_MODULE,
+		.open = drm_open,
+		.release = drm_release,
+		.unlocked_ioctl = drm_ioctl,
+		.mmap = drm_mmap,
+		.poll = drm_poll,
+		.fasync = drm_fasync,
+	},
+	.pci_driver = {
+		.name = DRIVER_NAME,
+		.id_table = pciidlist,
+	},
+
+	.name = DRIVER_NAME,
+	.desc = DRIVER_DESC,
+	.date = DRIVER_DATE,
+	.major = DRIVER_MAJOR,
+	.minor = DRIVER_MINOR,
+	.patchlevel = DRIVER_PATCHLEVEL,
+};
+
 static int __init
 glint_init(void)
 {
diff --git a/drivers/gpu/drm/glint/glint_drv.h b/drivers/gpu/drm/glint/glint_drv.h
index 324f34f..8894ef8 100644
--- a/drivers/gpu/drm/glint/glint_drv.h
+++ b/drivers/gpu/drm/glint/glint_drv.h
@@ -7,4 +7,20 @@
 #define DRIVER_DESC		"3DLabs GLint"
 #define DRIVER_DATE		"20100526"
 
+#define DRIVER_MAJOR		1
+#define DRIVER_MINOR		0
+#define DRIVER_PATCHLEVEL	0
+
+				/* glint_irq.c */
+void glint_driver_irq_preinstall(struct drm_device *dev);
+int glint_driver_irq_postinstall(struct drm_device *dev);
+void glint_driver_irq_uninstall(struct drm_device *dev);
+irqreturn_t glint_driver_irq_handler(DRM_IRQ_ARGS);
+
+				/* glint_kms.c */
+int glint_driver_load(struct drm_device *dev, unsigned long flags);
+int glint_driver_unload(struct drm_device *dev);
+extern struct drm_ioctl_desc glint_ioctls[];
+extern int glint_max_ioctl;
+
 #endif				/* __GLINT_DRV_H__ */
diff --git a/drivers/gpu/drm/glint/glint_irq.c b/drivers/gpu/drm/glint/glint_irq.c
new file mode 100644
index 0000000..51a2745
--- /dev/null
+++ b/drivers/gpu/drm/glint/glint_irq.c
@@ -0,0 +1,20 @@
+#include "drmP.h"
+#include "drm.h"
+
+irqreturn_t glint_driver_irq_handler(DRM_IRQ_ARGS)
+{
+	return IRQ_NONE;
+}
+
+void glint_driver_irq_preinstall(struct drm_device *dev)
+{
+}
+
+int glint_driver_irq_postinstall(struct drm_device *dev)
+{
+	return 0;
+}
+
+void glint_driver_irq_uninstall(struct drm_device *dev)
+{
+}
diff --git a/drivers/gpu/drm/glint/glint_kms.c b/drivers/gpu/drm/glint/glint_kms.c
new file mode 100644
index 0000000..08057b7
--- /dev/null
+++ b/drivers/gpu/drm/glint/glint_kms.c
@@ -0,0 +1,16 @@
+#include "drmP.h"
+#include "drm.h"
+
+int glint_driver_load(struct drm_device *dev, unsigned long flags)
+{
+	return 0;
+}
+
+int glint_driver_unload(struct drm_device *dev)
+{
+	return 0;
+}
+
+struct drm_ioctl_desc glint_ioctls[] = {
+};
+int glint_max_ioctl = DRM_ARRAY_SIZE(glint_ioctls);