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 fixes from Geert Uytterhoeven:
 "Here are a few fixes for the m68k architecture.  Nothing fancy this
  time, just a build fix for the asm/system.h disintegration, and two
  fixes for missing platform checks (one got in during last merge
  window), which can cause crashes in multi-platform kernels."

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k:
  m68k/q40: Add missing platform check before registering platform devices
  m68k/mac: Add missing platform check before registering platform devices
  m68k: include asm/cmpxchg.h in our m68k atomic.h
  • Loading branch information
Linus Torvalds committed Apr 3, 2012
2 parents 7d6e1cb + 450aed7 commit 1e649af
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/m68k/include/asm/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <linux/types.h>
#include <linux/irqflags.h>
#include <asm/cmpxchg.h>

/*
* Atomic operations that C can't guarantee us. Useful for
Expand Down
3 changes: 3 additions & 0 deletions arch/m68k/mac/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,9 @@ int __init mac_platform_init(void)
{
u8 *swim_base;

if (!MACH_IS_MAC)
return -ENODEV;

/*
* Serial devices
*/
Expand Down
3 changes: 3 additions & 0 deletions arch/m68k/q40/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ static __init int q40_add_kbd_device(void)
{
struct platform_device *pdev;

if (!MACH_IS_Q40)
return -ENODEV;

pdev = platform_device_register_simple("q40kbd", -1, NULL, 0);
if (IS_ERR(pdev))
return PTR_ERR(pdev);
Expand Down

0 comments on commit 1e649af

Please sign in to comment.