Skip to content

Commit 8fa3b6f

Browse files
committed
Merge tag 'cris-for-4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/jesper/cris
Pull CRIS updates from Jesper Nilsson: "Three patches for minor issues" * tag 'cris-for-4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/jesper/cris: cris: No need to append -O2 and $(LINUXINCLUDE) tty: serial: make crisv10 explicitly non-modular cris: Only build flash rescue image if CONFIG_ETRAX_AXISFLASHMAP is selected
2 parents 56e9461 + 8f50f2a commit 8fa3b6f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

arch/cris/boot/compressed/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
# arch/cris/boot/compressed/Makefile
33
#
44

5-
asflags-y += $(LINUXINCLUDE)
6-
ccflags-y += -O2 $(LINUXINCLUDE)
7-
85
# asflags-$(CONFIG_ETRAX_ARCH_V32) += -I$(srctree)/include/asm/mach \
96
# -I$(srctree)/include/asm/arch
107
# ccflags-$(CONFIG_ETRAX_ARCH_V32) += -O2 -I$(srctree)/include/asm/mach

arch/cris/boot/rescue/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
# asflags-y += -I $(srctree)/include/asm/arch/mach/ -I $(srctree)/include/asm/arch
99
# LD = gcc-cris -mlinux -march=v32 -nostdlib
1010

11-
asflags-y += $(LINUXINCLUDE)
12-
ccflags-y += -O2 $(LINUXINCLUDE)
11+
ifdef CONFIG_ETRAX_AXISFLASHMAP
12+
1313
arch-$(CONFIG_ETRAX_ARCH_V10) = v10
1414
arch-$(CONFIG_ETRAX_ARCH_V32) = v32
1515

@@ -28,6 +28,11 @@ $(obj)/rescue.bin: $(obj)/rescue.o FORCE
2828
$(call if_changed,objcopy)
2929
cp -p $(obj)/rescue.bin $(objtree)
3030

31+
else
32+
$(obj)/rescue.bin:
33+
34+
endif
35+
3136
$(obj)/testrescue.bin: $(obj)/testrescue.o
3237
$(OBJCOPY) $(OBJCOPYFLAGS) $(obj)/testrescue.o tr.bin
3338
# Pad it to 784 bytes

drivers/tty/serial/crisv10.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ static char *serial_version = "$Revision: 1.25 $";
2828
#include <linux/bitops.h>
2929
#include <linux/seq_file.h>
3030
#include <linux/delay.h>
31-
#include <linux/module.h>
3231
#include <linux/uaccess.h>
3332
#include <linux/io.h>
3433

@@ -4098,7 +4097,7 @@ static void show_serial_version(void)
40984097
&serial_version[11]); /* "$Revision: x.yy" */
40994098
}
41004099

4101-
/* rs_init inits the driver at boot (using the module_init chain) */
4100+
/* rs_init inits the driver at boot (using the initcall chain) */
41024101

41034102
static const struct tty_operations rs_ops = {
41044103
.open = rs_open,
@@ -4247,5 +4246,4 @@ static int __init rs_init(void)
42474246
}
42484247

42494248
/* this makes sure that rs_init is called during kernel boot */
4250-
4251-
module_init(rs_init);
4249+
device_initcall(rs_init);

0 commit comments

Comments
 (0)