Add BAID for ahci cdrom.
authorGleb Natapov <gleb@redhat.com>
Thu, 23 Dec 2010 09:29:36 +0000 (11:29 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 24 Dec 2010 15:33:17 +0000 (10:33 -0500)
Signed-off-by: Gleb Natapov <gleb@redhat.com>
src/ahci.c

index e2b2dbf59ba1468ea41c395e133219b5254b2df9..70c0f1cba2f44183b9b282d1959d53c4c918079b 100644 (file)
@@ -395,8 +395,10 @@ ahci_port_init(struct ahci_ctrl_s *ctrl, u32 pnr)
                  , (iscd ? "DVD/CD" : "Device"));
 
         // fill cdidmap
-        if (iscd)
+        if (iscd) {
             map_cd_drive(&port->drive);
+            add_baid_cdrom(&port->drive);
+       }
     }
     dprintf(1, "%s\n", port->drive.desc);