board: atmel: clean up peripheral clock code
[oweals/u-boot.git] / board / siemens / smartweb / smartweb.c
index d82f1b73a712db93fe610faf7f9ceb5831936088..e7ee65cd8d3845263a6dd2c025ebc5999bd68c84 100644 (file)
@@ -22,7 +22,6 @@
 #include <asm/arch/at91sam9260_matrix.h>
 #include <asm/arch/at91sam9_smc.h>
 #include <asm/arch/at91_common.h>
-#include <asm/arch/at91_pmc.h>
 #include <asm/arch/at91_spi.h>
 #include <spi.h>
 #include <asm/arch/clk.h>
@@ -126,7 +125,7 @@ void at91_udp_hw_init(void)
        /* Enable UDPCK clock, MCK is enabled in at91_clock_init() */
        at91_periph_clk_enable(ATMEL_ID_UDP);
 
-       writel(AT91SAM926x_PMC_UDP, &pmc->scer);
+       at91_system_clk_enable(AT91SAM926x_PMC_UDP);
 }
 
 struct at91_udc_data board_udc_data  = {