diff options
Diffstat (limited to 'arch/cris')
-rw-r--r-- | arch/cris/Kconfig | 5 | ||||
-rw-r--r-- | arch/cris/arch-v10/Kconfig | 4 | ||||
-rw-r--r-- | arch/cris/arch-v10/drivers/Kconfig | 4 | ||||
-rw-r--r-- | arch/cris/arch-v10/kernel/entry.S | 2 | ||||
-rw-r--r-- | arch/cris/arch-v32/Kconfig | 4 | ||||
-rw-r--r-- | arch/cris/arch-v32/drivers/Kconfig | 4 | ||||
-rw-r--r-- | arch/cris/arch-v32/drivers/pci/dma.c | 4 |
7 files changed, 23 insertions, 4 deletions
diff --git a/arch/cris/Kconfig b/arch/cris/Kconfig index 7f0be4cd5e9a..27b082ac7f11 100644 --- a/arch/cris/Kconfig +++ b/arch/cris/Kconfig | |||
@@ -150,6 +150,7 @@ config ETRAX_FLASH_BUSWIDTH | |||
150 | Width in bytes of the Flash bus (1, 2 or 4). Is usually 2. | 150 | Width in bytes of the Flash bus (1, 2 or 4). Is usually 2. |
151 | 151 | ||
152 | source arch/cris/arch-v10/Kconfig | 152 | source arch/cris/arch-v10/Kconfig |
153 | source arch/cris/arch-v32/Kconfig | ||
153 | 154 | ||
154 | endmenu | 155 | endmenu |
155 | 156 | ||
@@ -157,8 +158,8 @@ source "net/Kconfig" | |||
157 | 158 | ||
158 | # bring in ETRAX built-in drivers | 159 | # bring in ETRAX built-in drivers |
159 | menu "Drivers for built-in interfaces" | 160 | menu "Drivers for built-in interfaces" |
160 | # arch/cris/arch is a symlink to correct arch (arch-v10 or arch-v32) | 161 | source arch/cris/arch-v10/drivers/Kconfig |
161 | source arch/cris/arch/drivers/Kconfig | 162 | source arch/cris/arch-v32/drivers/Kconfig |
162 | 163 | ||
163 | endmenu | 164 | endmenu |
164 | 165 | ||
diff --git a/arch/cris/arch-v10/Kconfig b/arch/cris/arch-v10/Kconfig index f1ce6f64401d..1d61faec77cd 100644 --- a/arch/cris/arch-v10/Kconfig +++ b/arch/cris/arch-v10/Kconfig | |||
@@ -1,3 +1,5 @@ | |||
1 | if ETRAX_ARCH_V10 | ||
2 | |||
1 | # ETRAX 100LX v1 has a MMU "feature" requiring a low mapping | 3 | # ETRAX 100LX v1 has a MMU "feature" requiring a low mapping |
2 | config CRIS_LOW_MAP | 4 | config CRIS_LOW_MAP |
3 | bool | 5 | bool |
@@ -451,3 +453,5 @@ config ETRAX_POWERBUTTON_BIT | |||
451 | default "25" | 453 | default "25" |
452 | help | 454 | help |
453 | Configure where power button is connected. | 455 | Configure where power button is connected. |
456 | |||
457 | endif | ||
diff --git a/arch/cris/arch-v10/drivers/Kconfig b/arch/cris/arch-v10/drivers/Kconfig index e3c0f2928149..96740ef497d4 100644 --- a/arch/cris/arch-v10/drivers/Kconfig +++ b/arch/cris/arch-v10/drivers/Kconfig | |||
@@ -1,3 +1,5 @@ | |||
1 | if ETRAX_ARCH_V10 | ||
2 | |||
1 | config ETRAX_ETHERNET | 3 | config ETRAX_ETHERNET |
2 | bool "Ethernet support" | 4 | bool "Ethernet support" |
3 | depends on ETRAX_ARCH_V10 | 5 | depends on ETRAX_ARCH_V10 |
@@ -806,3 +808,5 @@ config ETRAX_DS1302_TRICKLE_CHARGE | |||
806 | 1 = 2kohm, 2 = 4kohm, 3 = 4kohm | 808 | 1 = 2kohm, 2 = 4kohm, 3 = 4kohm |
807 | 4 = 1 diode, 8 = 2 diodes | 809 | 4 = 1 diode, 8 = 2 diodes |
808 | Allowed values are (increasing current): 0, 11, 10, 9, 7, 6, 5 | 810 | Allowed values are (increasing current): 0, 11, 10, 9, 7, 6, 5 |
811 | |||
812 | endif | ||
diff --git a/arch/cris/arch-v10/kernel/entry.S b/arch/cris/arch-v10/kernel/entry.S index ec62c951fa3c..d1361dc119e2 100644 --- a/arch/cris/arch-v10/kernel/entry.S +++ b/arch/cris/arch-v10/kernel/entry.S | |||
@@ -1167,7 +1167,7 @@ sys_call_table: | |||
1167 | .long sys_epoll_pwait | 1167 | .long sys_epoll_pwait |
1168 | .long sys_utimensat /* 320 */ | 1168 | .long sys_utimensat /* 320 */ |
1169 | .long sys_signalfd | 1169 | .long sys_signalfd |
1170 | .long sys_timerfd | 1170 | .long sys_ni_syscall |
1171 | .long sys_eventfd | 1171 | .long sys_eventfd |
1172 | .long sys_fallocate | 1172 | .long sys_fallocate |
1173 | 1173 | ||
diff --git a/arch/cris/arch-v32/Kconfig b/arch/cris/arch-v32/Kconfig index 4f79d8ed3e1c..d8acaa920e1c 100644 --- a/arch/cris/arch-v32/Kconfig +++ b/arch/cris/arch-v32/Kconfig | |||
@@ -1,3 +1,5 @@ | |||
1 | if ETRAX_ARCH_V32 | ||
2 | |||
1 | config ETRAX_DRAM_VIRTUAL_BASE | 3 | config ETRAX_DRAM_VIRTUAL_BASE |
2 | hex | 4 | hex |
3 | depends on ETRAX_ARCH_V32 | 5 | depends on ETRAX_ARCH_V32 |
@@ -294,3 +296,5 @@ config ETRAX_DEF_GIO_PE_OUT | |||
294 | help | 296 | help |
295 | Configures the initial data for the general port E bits. Most | 297 | Configures the initial data for the general port E bits. Most |
296 | products should use 00000 here. | 298 | products should use 00000 here. |
299 | |||
300 | endif | ||
diff --git a/arch/cris/arch-v32/drivers/Kconfig b/arch/cris/arch-v32/drivers/Kconfig index 9bccb5e2a960..c329cce2a0c3 100644 --- a/arch/cris/arch-v32/drivers/Kconfig +++ b/arch/cris/arch-v32/drivers/Kconfig | |||
@@ -1,3 +1,5 @@ | |||
1 | if ETRAX_ARCH_V32 | ||
2 | |||
1 | config ETRAX_ETHERNET | 3 | config ETRAX_ETHERNET |
2 | bool "Ethernet support" | 4 | bool "Ethernet support" |
3 | depends on ETRAX_ARCH_V32 | 5 | depends on ETRAX_ARCH_V32 |
@@ -610,3 +612,5 @@ config ETRAX_STREAMCOPROC | |||
610 | help | 612 | help |
611 | This option enables a driver for the stream co-processor | 613 | This option enables a driver for the stream co-processor |
612 | for cryptographic operations. | 614 | for cryptographic operations. |
615 | |||
616 | endif | ||
diff --git a/arch/cris/arch-v32/drivers/pci/dma.c b/arch/cris/arch-v32/drivers/pci/dma.c index 66f9500fbc02..e0364654fc44 100644 --- a/arch/cris/arch-v32/drivers/pci/dma.c +++ b/arch/cris/arch-v32/drivers/pci/dma.c | |||
@@ -93,7 +93,7 @@ int dma_declare_coherent_memory(struct device *dev, dma_addr_t bus_addr, | |||
93 | 93 | ||
94 | dev->dma_mem = kzalloc(sizeof(struct dma_coherent_mem), GFP_KERNEL); | 94 | dev->dma_mem = kzalloc(sizeof(struct dma_coherent_mem), GFP_KERNEL); |
95 | if (!dev->dma_mem) | 95 | if (!dev->dma_mem) |
96 | goto out; | 96 | goto iounmap_out; |
97 | dev->dma_mem->bitmap = kzalloc(bitmap_size, GFP_KERNEL); | 97 | dev->dma_mem->bitmap = kzalloc(bitmap_size, GFP_KERNEL); |
98 | if (!dev->dma_mem->bitmap) | 98 | if (!dev->dma_mem->bitmap) |
99 | goto free1_out; | 99 | goto free1_out; |
@@ -110,6 +110,8 @@ int dma_declare_coherent_memory(struct device *dev, dma_addr_t bus_addr, | |||
110 | 110 | ||
111 | free1_out: | 111 | free1_out: |
112 | kfree(dev->dma_mem); | 112 | kfree(dev->dma_mem); |
113 | iounmap_out: | ||
114 | iounmap(mem_base); | ||
113 | out: | 115 | out: |
114 | return 0; | 116 | return 0; |
115 | } | 117 | } |