Sfoglia il codice sorgente

Blackfin: portmux: allow header to be included in assembly files

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger 14 anni fa
parent
commit
f75e8b32ad
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      arch/blackfin/include/asm/portmux.h

+ 4 - 0
arch/blackfin/include/asm/portmux.h

@@ -22,11 +22,15 @@
 #define peripheral_request_list(per, label) peripheral_request_list(per)
 #endif
 
+#ifndef __ASSEMBLY__
+
 int peripheral_request(unsigned short per, const char *label);
 void peripheral_free(unsigned short per);
 int peripheral_request_list(const unsigned short per[], const char *label);
 void peripheral_free_list(const unsigned short per[]);
 
+#endif
+
 #include <asm/blackfin.h>
 
 #ifndef P_SPORT2_TFS