summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ahci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ahci.c b/src/ahci.c
index 17bd522..fde8034 100644
--- a/src/ahci.c
+++ b/src/ahci.c
@@ -342,6 +342,7 @@ ahci_port_init(struct ahci_ctrl_s *ctrl, u32 pnr)
}
port->drive.type = DTYPE_AHCI;
+ port->drive.cntl_id = pnr;
port->drive.removable = (buffer[0] & 0x80) ? 1 : 0;
port->drive.desc = malloc_tmp(MAXDESCSIZE);
if (!port->drive.desc) {