From 89b43686db1fe9681d80a7cf5662730cb9378cae Mon Sep 17 00:00:00 2001 From: Bayard Bell Date: Thu, 15 Sep 2011 18:27:52 +0100 Subject: 1073 migrate kernel modules from ancient _depends_on to true ELF dependencies Reviewed by: Adam Leventhal Reviewed by: Garrett D'Amore Approved by: Richard Lowe --- usr/src/uts/sun/io/scsi/adapters/fas.c | 3 +-- usr/src/uts/sun/io/scsi/adapters/sf.c | 4 +--- usr/src/uts/sun/io/zs_hdlc.c | 4 +--- 3 files changed, 3 insertions(+), 8 deletions(-) (limited to 'usr/src/uts/sun/io') diff --git a/usr/src/uts/sun/io/scsi/adapters/fas.c b/usr/src/uts/sun/io/scsi/adapters/fas.c index 06816a06ed..12e3aa3102 100644 --- a/usr/src/uts/sun/io/scsi/adapters/fas.c +++ b/usr/src/uts/sun/io/scsi/adapters/fas.c @@ -21,6 +21,7 @@ /* * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. + * Copyright (c) 2011 Bayard G. Bell. All rights reserved. */ @@ -382,8 +383,6 @@ static struct dev_ops fas_ops = { ddi_quiesce_not_supported, /* devo_quiesce */ }; -char _depends_on[] = "misc/scsi"; - static struct modldrv modldrv = { &mod_driverops, /* Type of module. This one is a driver */ "FAS SCSI HBA Driver", /* Name of the module. */ diff --git a/usr/src/uts/sun/io/scsi/adapters/sf.c b/usr/src/uts/sun/io/scsi/adapters/sf.c index 57e486d7cb..8bd12cd74e 100644 --- a/usr/src/uts/sun/io/scsi/adapters/sf.c +++ b/usr/src/uts/sun/io/scsi/adapters/sf.c @@ -21,6 +21,7 @@ /* * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. + * Copyright (c) 2011 Bayard G. Bell. All rights reserved. */ /* @@ -212,9 +213,6 @@ static struct dev_ops sf_ops = { ddi_quiesce_not_supported, /* devo_quiesce */ }; -/* to ensure this module gets loaded in memory when we do */ -char _depends_on[] = "misc/scsi"; - #define SF_NAME "FC-AL FCP Nexus Driver" /* Name of the module. */ static char sf_version[] = "1.72 08/19/2008"; /* version of the module */ diff --git a/usr/src/uts/sun/io/zs_hdlc.c b/usr/src/uts/sun/io/zs_hdlc.c index 99a41283af..229747ec03 100644 --- a/usr/src/uts/sun/io/zs_hdlc.c +++ b/usr/src/uts/sun/io/zs_hdlc.c @@ -21,6 +21,7 @@ /* * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. + * Copyright (c) 2011 Bayard G. Bell. All rights reserved. */ @@ -135,9 +136,6 @@ int zsh_h_log_n[2]; } #endif - -char _depends_on[] = "drv/zs"; - #ifndef MAXZSH #define MAXZSH 2 #define MAXZSHCLONES (80) /* three clone opens per instance */ -- cgit v1.2.3