summaryrefslogtreecommitdiff
path: root/sys/arch/pica/pica/disksubr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/pica/pica/disksubr.c')
-rw-r--r--sys/arch/pica/pica/disksubr.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/sys/arch/pica/pica/disksubr.c b/sys/arch/pica/pica/disksubr.c
index d7cc7079e4e..44954ae8e0c 100644
--- a/sys/arch/pica/pica/disksubr.c
+++ b/sys/arch/pica/pica/disksubr.c
@@ -43,28 +43,11 @@
extern struct device *bootdv;
/* was this the boot device ? */
-int
+void
dk_establish(dk, dev)
struct disk *dk;
struct device *dev;
{
-#ifdef NOTDEF
- /* XXX: sd -> scsibus -> esp */
- struct bootpath *bp = ((struct esp_softc *)dev->dv_parent->dv_parent)->sc_bp;
- char name[10];
-
-#define CRAZYMAP(v) ((v) == 3 ? 0 : (v) == 0 ? 3 : (v))
-
- if (bp == NULL) {
- printf("no boot path\n");
- return -1;
- }
- sprintf(name, "%s%d", bp->name, CRAZYMAP(bp->val[0]));
- if (strcmp(name, dev->dv_xname) == 0) {
- bootdv = dev;
- }
-#endif
- return 1;
}
/*