Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/geert/linux-m68k

Pull m68k updates from Geert Uytterhoeven:
 "Summary:
   - __put_user_unaligned may/will be used by btrfs
   - m68k part of a global cleanup"

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k:
  m68k: Remove deprecated IRQF_DISABLED
  m68k/m68knommu: Implement __get_user_unaligned/__put_user_unaligned()
  • Loading branch information
Linus Torvalds committed Nov 11, 2013
2 parents 78d4a42 + 77a4279 commit 0a759b2
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion arch/m68k/include/asm/floppy.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static int fd_request_irq(void)
{
if(MACH_IS_Q40)
return request_irq(FLOPPY_IRQ, floppy_hardint,
IRQF_DISABLED, "floppy", floppy_hardint);
0, "floppy", floppy_hardint);
else if(MACH_IS_SUN3X)
return sun3xflop_request_irq();
return -ENXIO;
Expand Down
2 changes: 1 addition & 1 deletion arch/m68k/include/asm/sun3xflop.h
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ static int sun3xflop_request_irq(void)
if(!once) {
once = 1;
error = request_irq(FLOPPY_IRQ, sun3xflop_hardint,
IRQF_DISABLED, "floppy", NULL);
0, "floppy", NULL);
return ((error == 0) ? 0 : -1);
} else return 0;
}
Expand Down
7 changes: 7 additions & 0 deletions arch/m68k/include/asm/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@
#else
#include <asm/uaccess_mm.h>
#endif

#ifdef CONFIG_CPU_HAS_NO_UNALIGNED
#include <asm-generic/uaccess-unaligned.h>
#else
#define __get_user_unaligned(x, ptr) __get_user((x), (ptr))
#define __put_user_unaligned(x, ptr) __put_user((x), (ptr))
#endif
2 changes: 1 addition & 1 deletion arch/m68k/platform/68000/timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static irqreturn_t hw_tick(int irq, void *dummy)

static struct irqaction m68328_timer_irq = {
.name = "timer",
.flags = IRQF_DISABLED | IRQF_TIMER,
.flags = IRQF_TIMER,
.handler = hw_tick,
};

Expand Down
2 changes: 1 addition & 1 deletion arch/m68k/platform/68360/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ static irqreturn_t hw_tick(int irq, void *dummy)

static struct irqaction m68360_timer_irq = {
.name = "timer",
.flags = IRQF_DISABLED | IRQF_TIMER,
.flags = IRQF_TIMER,
.handler = hw_tick,
};

Expand Down
2 changes: 1 addition & 1 deletion arch/m68k/platform/coldfire/pit.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ static irqreturn_t pit_tick(int irq, void *dummy)

static struct irqaction pit_irq = {
.name = "timer",
.flags = IRQF_DISABLED | IRQF_TIMER,
.flags = IRQF_TIMER,
.handler = pit_tick,
};

Expand Down
4 changes: 2 additions & 2 deletions arch/m68k/platform/coldfire/sltimers.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ irqreturn_t mcfslt_profile_tick(int irq, void *dummy)

static struct irqaction mcfslt_profile_irq = {
.name = "profile timer",
.flags = IRQF_DISABLED | IRQF_TIMER,
.flags = IRQF_TIMER,
.handler = mcfslt_profile_tick,
};

Expand Down Expand Up @@ -93,7 +93,7 @@ static irqreturn_t mcfslt_tick(int irq, void *dummy)

static struct irqaction mcfslt_timer_irq = {
.name = "timer",
.flags = IRQF_DISABLED | IRQF_TIMER,
.flags = IRQF_TIMER,
.handler = mcfslt_tick,
};

Expand Down
4 changes: 2 additions & 2 deletions arch/m68k/platform/coldfire/timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static irqreturn_t mcftmr_tick(int irq, void *dummy)

static struct irqaction mcftmr_timer_irq = {
.name = "timer",
.flags = IRQF_DISABLED | IRQF_TIMER,
.flags = IRQF_TIMER,
.handler = mcftmr_tick,
};

Expand Down Expand Up @@ -171,7 +171,7 @@ irqreturn_t coldfire_profile_tick(int irq, void *dummy)

static struct irqaction coldfire_profile_irq = {
.name = "profile timer",
.flags = IRQF_DISABLED | IRQF_TIMER,
.flags = IRQF_TIMER,
.handler = coldfire_profile_tick,
};

Expand Down

0 comments on commit 0a759b2

Please sign in to comment.