diff --git a/src/sys/pci/hd.c b/src/sys/pci/hd.c index 9671fcf..eff8303 100644 --- a/src/sys/pci/hd.c +++ b/src/sys/pci/hd.c @@ -63,16 +63,16 @@ /* Alloc memory for device structure and set it up correctly */ devInfo = (struct deviceInterface *)kmalloc(sizeof(struct deviceInterface)); - devInfo->read = hdRead; - devInfo->write = hdWrite; - devInfo->reset = hdReset; - devInfo->init = hdInit; - devInfo->ioctl = hdIoctl; - devInfo->stop = hdStop; - devInfo->start = hdStart; - defInfo->standby = hdStandby; - defInfo->info = hdd0; - defInfo->major = 1; + devInfo->read = &hdRead; + devInfo->write = &hdWrite; + devInfo->reset = &hdReset; + devInfo->init = &hdInit; + devInfo->ioctl = &hdIoctl; + devInfo->stop = &hdStop; + devInfo->start = &hdStart; + devInfo->standby = &hdStandby; + devInfo->info = hdd0; + devInfo->major = 1; deviceAdd(0,'c',devInfo); //deviceAdd(1,0,'c',hdRead,hdWrite,hdReset,hdInit,hdIoctl,hdStop,hdStart,hdStandby,hdd0);