diff --git a/src/stm32/Makefile b/src/stm32/Makefile
index 24c60c585..017fdda1e 100644
--- a/src/stm32/Makefile
+++ b/src/stm32/Makefile
@@ -23,7 +23,7 @@ src-y += generic/crc16_ccitt.c generic/armcm_irq.c generic/armcm_timer.c
 src-$(CONFIG_MACH_STM32F1) += ../lib/stm32f1/system_stm32f1xx.c
 src-$(CONFIG_MACH_STM32F1) += stm32/stm32f1.c
 src-$(CONFIG_MACH_STM32F4) += ../lib/stm32f4/system_stm32f4xx.c
-src-$(CONFIG_MACH_STM32F4) += stm32/clock.c
+src-$(CONFIG_MACH_STM32F4) += stm32/stm32f4.c
 src-$(CONFIG_HAVE_GPIO_ADC) += stm32/adc.c
 src-$(CONFIG_HAVE_GPIO_SPI) += stm32/spi.c
 src-$(CONFIG_USBSERIAL) += stm32/usbfs.c generic/usb_cdc.c
diff --git a/src/stm32/clock.c b/src/stm32/stm32f4.c
similarity index 100%
rename from src/stm32/clock.c
rename to src/stm32/stm32f4.c