Skip to content

Commit 13cf4cf

Browse files
yashshah7paul-walmsley-sifive
authored andcommitted
riscv: move sifive_l2_cache.h to include/soc
The commit 9209fb5 ("riscv: move sifive_l2_cache.c to drivers/soc") moves the sifive L2 cache driver to driver/soc. It did not move the header file along with the driver. Therefore this patch moves the header file to driver/soc Signed-off-by: Yash Shah <[email protected]> Reviewed-by: Anup Patel <[email protected]> [[email protected]: updated to fix the include guard] Fixes: 9209fb5 ("riscv: move sifive_l2_cache.c to drivers/soc") Signed-off-by: Paul Walmsley <[email protected]>
1 parent c79f46a commit 13cf4cf

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

drivers/edac/sifive_edac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <linux/edac.h>
1111
#include <linux/platform_device.h>
1212
#include "edac_module.h"
13-
#include <asm/sifive_l2_cache.h>
13+
#include <soc/sifive/sifive_l2_cache.h>
1414

1515
#define DRVNAME "sifive_edac"
1616

drivers/soc/sifive/sifive_l2_cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <linux/interrupt.h>
1010
#include <linux/of_irq.h>
1111
#include <linux/of_address.h>
12-
#include <asm/sifive_l2_cache.h>
12+
#include <soc/sifive/sifive_l2_cache.h>
1313

1414
#define SIFIVE_L2_DIRECCFIX_LOW 0x100
1515
#define SIFIVE_L2_DIRECCFIX_HIGH 0x104

arch/riscv/include/asm/sifive_l2_cache.h renamed to include/soc/sifive/sifive_l2_cache.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
*
55
*/
66

7-
#ifndef _ASM_RISCV_SIFIVE_L2_CACHE_H
8-
#define _ASM_RISCV_SIFIVE_L2_CACHE_H
7+
#ifndef __SOC_SIFIVE_L2_CACHE_H
8+
#define __SOC_SIFIVE_L2_CACHE_H
99

1010
extern int register_sifive_l2_error_notifier(struct notifier_block *nb);
1111
extern int unregister_sifive_l2_error_notifier(struct notifier_block *nb);
1212

1313
#define SIFIVE_L2_ERR_TYPE_CE 0
1414
#define SIFIVE_L2_ERR_TYPE_UE 1
1515

16-
#endif /* _ASM_RISCV_SIFIVE_L2_CACHE_H */
16+
#endif /* __SOC_SIFIVE_L2_CACHE_H */

0 commit comments

Comments
 (0)