projects
/
seabios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Check if capability enabled in XXX_cmd_data functions.
[seabios.git]
/
src
/
ahci.c
diff --git
a/src/ahci.c
b/src/ahci.c
index ee404d43810b7e20277161ba2da176f043ce3f2b..6c3127ae4c6421add41d784a0a9e4d07468f97b7 100644
(file)
--- a/
src/ahci.c
+++ b/
src/ahci.c
@@
-155,6
+155,9
@@
static int ahci_command(struct ahci_port_s *port, int iswrite, int isatapi,
int ahci_cmd_data(struct disk_op_s *op, void *cdbcmd, u16 blocksize)
{
+ if (! CONFIG_AHCI)
+ return 0;
+
struct ahci_port_s *port = container_of(
op->drive_g, struct ahci_port_s, drive);
struct ahci_cmd_s *cmd = GET_GLOBAL(port->cmd);