summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/ata-disk.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2002-12-06 19:29:53 +0000
committersos <sos@FreeBSD.org>2002-12-06 19:29:53 +0000
commitbc8cdd2186c111c9793dfb56fc887d038a521f2b (patch)
treea48b5989ece1310068cefeb4e31f4f9e20963169 /sys/dev/ata/ata-disk.c
parentd4c352ef370ddc4c12f23cdae86d25c5c3ae4eb2 (diff)
downloadFreeBSD-src-bc8cdd2186c111c9793dfb56fc887d038a521f2b.zip
FreeBSD-src-bc8cdd2186c111c9793dfb56fc887d038a521f2b.tar.gz
Fix linking problem when atadisk is not use in ata-all.c
Add dummy intr_func and lock_func to ata-card.c Dont call ad_print if the driver decided there is no disk.
Diffstat (limited to 'sys/dev/ata/ata-disk.c')
-rw-r--r--sys/dev/ata/ata-disk.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c
index 05e4ad9..9dc33db 100644
--- a/sys/dev/ata/ata-disk.c
+++ b/sys/dev/ata/ata-disk.c
@@ -219,8 +219,10 @@ ad_attach(struct ata_device *atadev)
/* if this disk belongs to an ATA RAID dont print the probe */
if (ata_raiddisk_attach(adp))
adp->flags |= AD_F_RAID_SUBDISK;
- else
- ad_print(adp);
+ else {
+ if (atadev->driver)
+ ad_print(adp);
+ }
}
void
OpenPOWER on IntegriCloud