malta-dtshim.h 686 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (C) 2015 Imagination Technologies
  3. * Author: Paul Burton <paul.burton@imgtec.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of the GNU General Public License as published by the
  7. * Free Software Foundation; either version 2 of the License, or (at your
  8. * option) any later version.
  9. */
  10. #ifndef __MIPS_MALTA_DTSHIM_H__
  11. #define __MIPS_MALTA_DTSHIM_H__
  12. #include <linux/init.h>
  13. #ifdef CONFIG_MIPS_MALTA
  14. extern void __init *malta_dt_shim(void *fdt);
  15. #else /* !CONFIG_MIPS_MALTA */
  16. static inline void *malta_dt_shim(void *fdt)
  17. {
  18. return fdt;
  19. }
  20. #endif /* !CONFIG_MIPS_MALTA */
  21. #endif /* __MIPS_MALTA_DTSHIM_H__ */