From e1473a3203f66d42e368eadda0f88e24db5da05d Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 2 Jun 2024 23:25:33 -0400 Subject: kernel: ahci: Add missing close() hook Signed-off-by: Ian Moffett --- sys/dev/ic/ahci.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sys/dev') 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 @@ -486,6 +486,15 @@ sata_dev_open(struct device *dev) return 0; } +/* + * 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; -- cgit v1.2.3