Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2 Eliminate drm_pci_init/exit. Empty fo...
details: https://anonhg.NetBSD.org/src/rev/29f3ec91750f
branches: trunk
changeset: 366458:29f3ec91750f
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Aug 28 03:34:39 2018 +0000
description:
Eliminate drm_pci_init/exit. Empty for a while, no need.
diffstat:
sys/external/bsd/drm2/amdgpu/amdgpu_module.c | 12 ++----------
sys/external/bsd/drm2/i915drm/i915_module.c | 11 ++---------
sys/external/bsd/drm2/pci/drm_pci.c | 18 ++----------------
sys/external/bsd/drm2/radeon/radeon_module.c | 12 +++---------
sys/external/bsd/drm2/via/via_module.c | 13 ++-----------
5 files changed, 11 insertions(+), 55 deletions(-)
diffs (200 lines):
diff -r 87e72c3ff54c -r 29f3ec91750f sys/external/bsd/drm2/amdgpu/amdgpu_module.c
--- a/sys/external/bsd/drm2/amdgpu/amdgpu_module.c Tue Aug 28 03:34:07 2018 +0000
+++ b/sys/external/bsd/drm2/amdgpu/amdgpu_module.c Tue Aug 28 03:34:39 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: amdgpu_module.c,v 1.2 2018/08/27 14:13:29 riastradh Exp $ */
+/* $NetBSD: amdgpu_module.c,v 1.3 2018/08/28 03:34:39 riastradh Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_module.c,v 1.2 2018/08/27 14:13:29 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_module.c,v 1.3 2018/08/28 03:34:39 riastradh Exp $");
#include <sys/types.h>
#include <sys/module.h>
@@ -75,13 +75,6 @@
#endif
amdgpu_amdkfd_init();
-
- error = drm_pci_init(amdgpu_drm_driver, NULL);
- if (error) {
- aprint_error("amdgpu: failed to init pci: %d\n",
- error);
- return error;
- }
drm_sysctl_init(&amdgpu_def);
return 0;
@@ -105,7 +98,6 @@
{
drm_sysctl_fini(&amdgpu_def);
- drm_pci_exit(amdgpu_drm_driver, NULL);
amdgpu_amdkfd_fini();
#if notyet /* XXX amdgpu acpi */
amdgpu_unregister_atpx_handler();
diff -r 87e72c3ff54c -r 29f3ec91750f sys/external/bsd/drm2/i915drm/i915_module.c
--- a/sys/external/bsd/drm2/i915drm/i915_module.c Tue Aug 28 03:34:07 2018 +0000
+++ b/sys/external/bsd/drm2/i915drm/i915_module.c Tue Aug 28 03:34:39 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: i915_module.c,v 1.6 2018/08/27 07:27:51 riastradh Exp $ */
+/* $NetBSD: i915_module.c,v 1.7 2018/08/28 03:34:39 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_module.c,v 1.6 2018/08/27 07:27:51 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_module.c,v 1.7 2018/08/28 03:34:39 riastradh Exp $");
#include <sys/types.h>
#include <sys/module.h>
@@ -71,12 +71,6 @@
i915_drm_driver->driver_features |= DRIVER_MODESET;
i915_drm_driver->driver_features &= ~DRIVER_USE_AGP;
- error = drm_pci_init(i915_drm_driver, NULL);
- if (error) {
- aprint_error("i915drmkms: failed to init pci: %d\n",
- error);
- return error;
- }
drm_sysctl_init(&i915_def);
spin_lock_init(&mchdev_lock);
@@ -102,7 +96,6 @@
spin_lock_destroy(&mchdev_lock);
drm_sysctl_fini(&i915_def);
- drm_pci_exit(i915_drm_driver, NULL);
}
static int
diff -r 87e72c3ff54c -r 29f3ec91750f sys/external/bsd/drm2/pci/drm_pci.c
--- a/sys/external/bsd/drm2/pci/drm_pci.c Tue Aug 28 03:34:07 2018 +0000
+++ b/sys/external/bsd/drm2/pci/drm_pci.c Tue Aug 28 03:34:39 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_pci.c,v 1.29 2018/08/27 15:32:06 riastradh Exp $ */
+/* $NetBSD: drm_pci.c,v 1.30 2018/08/28 03:34:39 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_pci.c,v 1.29 2018/08/27 15:32:06 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_pci.c,v 1.30 2018/08/28 03:34:39 riastradh Exp $");
#include <sys/types.h>
#include <sys/errno.h>
@@ -54,20 +54,6 @@
}
int
-drm_pci_init(struct drm_driver *driver __unused,
- struct pci_driver *pdriver __unused)
-{
-
- return 0;
-}
-
-void
-drm_pci_exit(struct drm_driver *driver __unused,
- struct pci_driver *pdriver __unused)
-{
-}
-
-int
drm_pci_attach(device_t self, const struct pci_attach_args *pa,
struct pci_dev *pdev, struct drm_driver *driver, unsigned long cookie,
struct drm_device **devp)
diff -r 87e72c3ff54c -r 29f3ec91750f sys/external/bsd/drm2/radeon/radeon_module.c
--- a/sys/external/bsd/drm2/radeon/radeon_module.c Tue Aug 28 03:34:07 2018 +0000
+++ b/sys/external/bsd/drm2/radeon/radeon_module.c Tue Aug 28 03:34:39 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: radeon_module.c,v 1.3 2014/11/12 03:14:00 christos Exp $ */
+/* $NetBSD: radeon_module.c,v 1.4 2018/08/28 03:34:40 riastradh Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: radeon_module.c,v 1.3 2014/11/12 03:14:00 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radeon_module.c,v 1.4 2018/08/28 03:34:40 riastradh Exp $");
#include <sys/types.h>
#include <sys/module.h>
@@ -69,12 +69,6 @@
radeon_drm_driver->num_ioctls = radeon_max_kms_ioctl;
radeon_drm_driver->driver_features |= DRIVER_MODESET;
- error = drm_pci_init(radeon_drm_driver, NULL);
- if (error) {
- aprint_error("radeon: failed to init pci: %d\n",
- error);
- return error;
- }
drm_sysctl_init(&radeon_def);
return 0;
@@ -96,8 +90,8 @@
static void
radeon_fini(void)
{
+
drm_sysctl_fini(&radeon_def);
- drm_pci_exit(radeon_drm_driver, NULL);
}
static int
diff -r 87e72c3ff54c -r 29f3ec91750f sys/external/bsd/drm2/via/via_module.c
--- a/sys/external/bsd/drm2/via/via_module.c Tue Aug 28 03:34:07 2018 +0000
+++ b/sys/external/bsd/drm2/via/via_module.c Tue Aug 28 03:34:39 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: via_module.c,v 1.2 2015/09/05 23:04:01 dholland Exp $ */
+/* $NetBSD: via_module.c,v 1.3 2018/08/28 03:34:40 riastradh Exp $ */
/*-
* Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: via_module.c,v 1.2 2015/09/05 23:04:01 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: via_module.c,v 1.3 2018/08/28 03:34:40 riastradh Exp $");
#include <sys/types.h>
#include <sys/module.h>
@@ -61,13 +61,6 @@
if (error)
return error;
- error = drm_pci_init(via_drm_driver, NULL);
- if (error) {
- aprint_error("viadrmkms: failed to init pci: %d\n",
- error);
- return error;
- }
-
return 0;
}
@@ -87,8 +80,6 @@
static void
viadrm_fini(void)
{
-
- drm_pci_exit(via_drm_driver, NULL);
}
static int
Home |
Main Index |
Thread Index |
Old Index