drm/glint: add pci probe and remove functions, set DRIVER_MODESET

Signed-off-by: Matt Turner <mattst88@gmail.com>
diff --git a/drivers/gpu/drm/glint/glint_drv.c b/drivers/gpu/drm/glint/glint_drv.c
index 8f8b94b..24f78a9 100644
--- a/drivers/gpu/drm/glint/glint_drv.c
+++ b/drivers/gpu/drm/glint/glint_drv.c
@@ -6,12 +6,28 @@
 
 #include "drm_pciids.h"
 
+static struct drm_driver driver;
+
 static struct pci_device_id pciidlist[] = {
 	glint_PCI_IDS
 };
 
+static int __devinit
+glint_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
+{
+	return drm_get_dev(pdev, ent, &driver);
+}
+
+static void
+glint_pci_remove(struct pci_dev *pdev)
+{
+	struct drm_device *dev = pci_get_drvdata(pdev);
+
+	drm_put_dev(dev);
+}
+
 static struct drm_driver driver = {
-	.driver_features = 0,
+	.driver_features = DRIVER_MODESET,
 	.load = glint_driver_load,
 	.unload = glint_driver_unload,
 	.irq_preinstall = glint_driver_irq_preinstall,
@@ -34,6 +50,8 @@
 	.pci_driver = {
 		.name = DRIVER_NAME,
 		.id_table = pciidlist,
+		.probe = glint_pci_probe,
+		.remove = glint_pci_remove,
 	},
 
 	.name = DRIVER_NAME,