treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / powerpc / include / asm / fsl_85xx_cache_sram.h
blob0235a0447baa465e1ac852b5864559c64b7ee88a
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Copyright 2009 Freescale Semiconductor, Inc.
5 * Cache SRAM handling for QorIQ platform
7 * Author: Vivek Mahajan <vivek.mahajan@freescale.com>
9 * This file is derived from the original work done
10 * by Sylvain Munaut for the Bestcomm SRAM allocator.
13 #ifndef __ASM_POWERPC_FSL_85XX_CACHE_SRAM_H__
14 #define __ASM_POWERPC_FSL_85XX_CACHE_SRAM_H__
16 #include <asm/rheap.h>
17 #include <linux/spinlock.h>
20 * Cache-SRAM
23 struct mpc85xx_cache_sram {
24 phys_addr_t base_phys;
25 void *base_virt;
26 unsigned int size;
27 rh_info_t *rh;
28 spinlock_t lock;
31 extern void mpc85xx_cache_sram_free(void *ptr);
32 extern void *mpc85xx_cache_sram_alloc(unsigned int size,
33 phys_addr_t *phys, unsigned int align);
35 #endif /* __AMS_POWERPC_FSL_85XX_CACHE_SRAM_H__ */