From 87e295b49e152087fa5e0be1628f1c12439f623f Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 20 Jan 2014 09:20:50 +0000 Subject: drm_activate() serves no purpose; ok kettenis --- sys/dev/pci/drm/drm_drv.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/pci/drm/drm_drv.c b/sys/dev/pci/drm/drm_drv.c index 314d2a5fc61..48a04caeb81 100644 --- a/sys/dev/pci/drm/drm_drv.c +++ b/sys/dev/pci/drm/drm_drv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: drm_drv.c,v 1.120 2013/12/21 19:36:42 kettenis Exp $ */ +/* $OpenBSD: drm_drv.c,v 1.121 2014/01/20 09:20:49 deraadt Exp $ */ /*- * Copyright 2007-2009 Owain G. Ainsworth * Copyright © 2008 Intel Corporation @@ -63,7 +63,6 @@ int drm_lastclose(struct drm_device *); void drm_attach(struct device *, struct device *, void *); int drm_probe(struct device *, void *, void *); int drm_detach(struct device *, int); -int drm_activate(struct device *, int); int drmprint(void *, const char *); int drmsubmatch(struct device *, void *, void *); int drm_dequeue_event(struct drm_device *, struct drm_file *, size_t, @@ -288,20 +287,9 @@ drm_detach(struct device *self, int flags) return 0; } -int -drm_activate(struct device *self, int act) -{ - switch (act) { - case DVACT_DEACTIVATE: - /* FIXME */ - break; - } - return (0); -} - struct cfattach drm_ca = { sizeof(struct drm_device), drm_probe, drm_attach, - drm_detach, drm_activate + drm_detach }; struct cfdriver drm_cd = { -- cgit v1.2.3