diff options
author | Ian Moffett <ian@osmora.org> | 2024-06-02 23:25:33 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-06-02 23:26:52 -0400 |
commit | e1473a3203f66d42e368eadda0f88e24db5da05d (patch) | |
tree | 45573c910cb4ce03260dbf371fe5054ffee58a5c | |
parent | 04fa82397e3a58a496e9d6883eb7495ef3ecea64 (diff) |
kernel: ahci: Add missing close() hook
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r-- | sys/dev/ic/ahci.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/ic/ahci.c b/sys/dev/ic/ahci.c index ef8e065..a0c8c52 100644 --- a/sys/dev/ic/ahci.c +++ b/sys/dev/ic/ahci.c @@ -487,6 +487,15 @@ sata_dev_open(struct device *dev) } /* + * Device interface close + */ +static int +sata_dev_close(struct device *dev) +{ + return 0; +} + +/* * Register a SATA device to the rest of the system * and expose to userland as a device file. */ @@ -509,6 +518,7 @@ ahci_sata_register(struct ahci_hba *hba, struct hba_port *port) dev = device_alloc(); dev->open = sata_dev_open; + dev->close = sata_dev_close; dev->read = sata_dev_read; dev->write = sata_dev_write; dev->blocksize = 512; |