mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-25 17:58:32 +03:00
qmod: Replace hand-crafted delay loop with call to mdelay()
This commit is contained in:
@@ -56,11 +56,7 @@ static int write_hub_eeprom(void)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
/* wait */
|
/* wait */
|
||||||
volatile int v;
|
mdelay(100);
|
||||||
/* 440ns per cycle here */
|
|
||||||
for (i = 0; i < 1000000; i++) {
|
|
||||||
v = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
TRACE_INFO("Writing EEPROM...\n\r");
|
TRACE_INFO("Writing EEPROM...\n\r");
|
||||||
/* write the EEPROM once */
|
/* write the EEPROM once */
|
||||||
|
|||||||
Reference in New Issue
Block a user