diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2010-12-05 12:52:02 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2010-12-05 12:52:02 -0500 |
commit | 80c2b6e91b9025e67d5b11ff7c8122506a760057 (patch) | |
tree | 0253ad6fd83a6db4a556939b297a70f7f6e81e34 /src/ata.c | |
parent | f3fe3aa7a0ccb881e659a4281d6f0a0bb5c33cc5 (diff) | |
download | seabios-hppa-80c2b6e91b9025e67d5b11ff7c8122506a760057.zip seabios-hppa-80c2b6e91b9025e67d5b11ff7c8122506a760057.tar.gz seabios-hppa-80c2b6e91b9025e67d5b11ff7c8122506a760057.tar.bz2 |
Check if capability enabled in XXX_cmd_data functions.
Make sure to check if CONFIG_AHCI, CONFIG_ATA, CONFIG_USB_MSC is
enabled in their respective cmd_data functions. This reduces the
compile size when they are not enabled.
Diffstat (limited to 'src/ata.c')
-rw-r--r-- | src/ata.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -602,6 +602,9 @@ process_ata_op(struct disk_op_s *op) int atapi_cmd_data(struct disk_op_s *op, void *cdbcmd, u16 blocksize) { + if (! CONFIG_ATA) + return 0; + struct atadrive_s *adrive_g = container_of( op->drive_g, struct atadrive_s, drive); struct ata_channel_s *chan_gf = GET_GLOBAL(adrive_g->chan_gf); |