Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbppc/mpc85xx powerpc: Use device_set_private for ...



details:   https://anonhg.NetBSD.org/src/rev/980f7852aea1
branches:  trunk
changeset: 362587:980f7852aea1
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Mar 03 06:28:04 2022 +0000

description:
powerpc: Use device_set_private for e500 cpuN.

diffstat:

 sys/arch/evbppc/mpc85xx/machdep.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r f36bc1fd590f -r 980f7852aea1 sys/arch/evbppc/mpc85xx/machdep.c
--- a/sys/arch/evbppc/mpc85xx/machdep.c Thu Mar 03 06:27:40 2022 +0000
+++ b/sys/arch/evbppc/mpc85xx/machdep.c Thu Mar 03 06:28:04 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.44 2019/04/11 14:47:06 kamil Exp $       */
+/*     $NetBSD: machdep.c,v 1.45 2022/03/03 06:28:04 riastradh Exp $   */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -36,7 +36,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.44 2019/04/11 14:47:06 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.45 2022/03/03 06:28:04 riastradh Exp $");
 
 #include "opt_altivec.h"
 #include "opt_ddb.h"
@@ -1019,7 +1019,7 @@
        if (instance > 1) {
 #if defined(MULTIPROCESSOR)
                ci->ci_idepth = -1;
-               self->dv_private = ci;
+               device_set_private(self, ci);
 
                ci->ci_cpuid = instance - (instance > 0);
                ci->ci_dev = self;
@@ -1038,7 +1038,7 @@
 #endif
        }
 
-       self->dv_private = ci;
+       device_set_private(self, ci);
 
        ci->ci_cpuid = instance - (instance > 0);
        ci->ci_dev = self;



Home | Main Index | Thread Index | Old Index