]> git.karo-electronics.de Git - karo-tx-linux.git/commit
m68knommu: limit interrupts supported by ColdFire intc-2 driver
authorGreg Ungerer <gerg@uclinux.org>
Mon, 7 Mar 2011 07:21:43 +0000 (17:21 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Tue, 15 Mar 2011 11:01:55 +0000 (21:01 +1000)
commit49bc6deace5a0a774678212097474b27b27e44fb
treeea1f1bd5406881d7af6b7e59505b2943a76ad049
parent7badfabb3fcee4fc4a0fd7c0437706b91fef3fff
m68knommu: limit interrupts supported by ColdFire intc-2 driver

The intc-2 interrupt controller on some ColdFire CPUs has a set range of
interrupts its supports (64 through 128 or 192 depending on model). We
shouldn't be setting this handler for every possible interrupt from 0 to
255. Set more appropriate limits, and this means we can drop the interrupt
number check in the mask and unmask routines.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68knommu/platform/coldfire/intc-2.c