summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/ibexpeak/sata.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/southbridge/intel/ibexpeak/sata.c')
-rw-r--r--src/southbridge/intel/ibexpeak/sata.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/southbridge/intel/ibexpeak/sata.c b/src/southbridge/intel/ibexpeak/sata.c
index 2c6b0caf18..dc3f1fff5d 100644
--- a/src/southbridge/intel/ibexpeak/sata.c
+++ b/src/southbridge/intel/ibexpeak/sata.c
@@ -33,7 +33,6 @@ static void sata_init(struct device *dev)
u16 reg16;
/* Get the chip configuration */
config_t *config = dev->chip_info;
- u8 sata_mode;
printk(BIOS_DEBUG, "SATA: Initializing...\n");
@@ -42,9 +41,8 @@ static void sata_init(struct device *dev)
return;
}
- if (get_option(&sata_mode, "sata_mode") != CB_SUCCESS)
- /* Default to AHCI */
- sata_mode = 0;
+ /* Default to AHCI */
+ u8 sata_mode = get_int_option("sata_mode", 0);
/* SATA configuration */
@@ -172,13 +170,11 @@ static void sata_enable(struct device *dev)
/* Get the chip configuration */
config_t *config = dev->chip_info;
u16 map = 0;
- u8 sata_mode;
if (!config)
return;
- if (get_option(&sata_mode, "sata_mode") != CB_SUCCESS)
- sata_mode = 0;
+ u8 sata_mode = get_int_option("sata_mode", 0);
/*
* Set SATA controller mode early so the resource allocator can