]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
Merge with mainline: Fix compile
authorTony Lindgren <tony@atomide.com>
Fri, 22 Dec 2006 01:40:33 +0000 (17:40 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 22 Dec 2006 01:40:33 +0000 (17:40 -0800)
Fix compile

Signed-off-by: Tony Lindgren <tony@atomide.com>
15 files changed:
Makefile
arch/arm/mach-omap2/clock.c
arch/arm/plat-omap/dsp/dsp_common.c
arch/arm/plat-omap/gpio-switch.c
arch/arm/plat-omap/gpio.c
arch/arm/plat-omap/mailbox.c
drivers/Kconfig
drivers/i2c/busses/Kconfig
drivers/input/keyboard/Kconfig
drivers/input/keyboard/Makefile
drivers/input/touchscreen/Kconfig
drivers/input/touchscreen/Makefile
drivers/leds/Kconfig
drivers/leds/Makefile
drivers/mmc/omap.c

index 3932e8391380392773b74436f3e649feb34b760f..19797d2f951c98565658e2b2760e400eaa174239 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 VERSION = 2
 PATCHLEVEL = 6
-SUBLEVEL = 19
-EXTRAVERSION =
+SUBLEVEL = 20
+EXTRAVERSION =-rc1
 NAME=Avast! A bilge rat!
 
 # *DOCUMENTATION*
@@ -10,12 +10,15 @@ NAME=Avast! A bilge rat!
 # Comments in this file are targeted only to the developer, do not
 # expect to learn how to build the kernel reading this file.
 
+# Do not:
+# o  use make's built-in rules and variables
+#    (this increases performance and avoid hard-to-debug behavour);
+# o  print "Entering directory ...";
+MAKEFLAGS += -rR --no-print-directory
+
 # Add custom flags here to avoid conflict with updates
 EXTRAVERSION := $(EXTRAVERSION)-omap1
 
-# Do not print "Entering directory ..."
-MAKEFLAGS += --no-print-directory
-
 # We are using a recursive build, so we need to do a little thinking
 # to get the ordering right.
 #
@@ -162,7 +165,6 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
                                  -e s/arm.*/arm/ -e s/sa110/arm/ \
                                  -e s/s390x/s390/ -e s/parisc64/parisc/ \
                                  -e s/ppc.*/powerpc/ -e s/mips.*/mips/ )
-SUBARCH := arm
 
 # Cross compiling and selecting different set of gcc/bin-utils
 # ---------------------------------------------------------------------------
@@ -184,7 +186,7 @@ SUBARCH := arm
 # Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile
 
 ARCH           ?= $(SUBARCH)
-CROSS_COMPILE  ?= arm-linux-
+CROSS_COMPILE  ?=
 
 # Architecture as present in compile.h
 UTS_MACHINE := $(ARCH)
@@ -275,12 +277,8 @@ export quiet Q KBUILD_VERBOSE
 # Look for make include files relative to root of kernel src
 MAKEFLAGS += --include-dir=$(srctree)
 
-# We need some generic definitions
-include  $(srctree)/scripts/Kbuild.include
-
-# Do not use make's built-in rules and variables
-# This increases performance and avoid hard-to-debug behavour
-MAKEFLAGS += -rR
+# We need some generic definitions.
+include $(srctree)/scripts/Kbuild.include
 
 # Make variables (CC, etc...)
 
@@ -501,11 +499,6 @@ else
 CFLAGS         += -fomit-frame-pointer
 endif
 
-ifdef CONFIG_UNWIND_INFO
-CFLAGS         += -fasynchronous-unwind-tables
-LDFLAGS_vmlinux        += --eh-frame-hdr
-endif
-
 ifdef CONFIG_DEBUG_INFO
 CFLAGS         += -g
 endif
@@ -1105,9 +1098,9 @@ boards := $(notdir $(boards))
 
 help:
        @echo  'Cleaning targets:'
-       @echo  '  clean           - remove most generated files but keep the config and'
+       @echo  '  clean           - Remove most generated files but keep the config and'
        @echo  '                    enough build support to build external modules'
-       @echo  '  mrproper        - remove all generated files + config + various backup files'
+       @echo  '  mrproper        - Remove all generated files + config + various backup files'
        @echo  '  distclean       - mrproper + remove editor backup and patch files'
        @echo  ''
        @echo  'Configuration targets:'
@@ -1395,12 +1388,18 @@ endif #ifeq ($(mixed-targets),1)
 
 PHONY += checkstack kernelrelease kernelversion
 
-# Use $(SUBARCH) here instead of $(ARCH) so that this works for UML.
-# In the UML case, $(SUBARCH) is the name of the underlying
-# architecture, while for all other arches, it is the same as $(ARCH).
+# UML needs a little special treatment here.  It wants to use the host
+# toolchain, so needs $(SUBARCH) passed to checkstack.pl.  Everyone
+# else wants $(ARCH), including people doing cross-builds, which means
+# that $(SUBARCH) doesn't work here.
+ifeq ($(ARCH), um)
+CHECKSTACK_ARCH := $(SUBARCH)
+else
+CHECKSTACK_ARCH := $(ARCH)
+endif
 checkstack:
        $(OBJDUMP) -d vmlinux $$(find . -name '*.ko') | \
-       $(PERL) $(src)/scripts/checkstack.pl $(SUBARCH)
+       $(PERL) $(src)/scripts/checkstack.pl $(CHECKSTACK_ARCH)
 
 kernelrelease:
        $(if $(wildcard include/config/kernel.release), $(Q)echo $(KERNELRELEASE), \
@@ -1488,6 +1487,8 @@ endif     # skip-makefile
 PHONY += FORCE
 FORCE:
 
+# Cancel implicit rules on top Makefile, `-rR' will apply to sub-makes.
+Makefile: ;
 
 # Declare the contents of the .PHONY variable as phony.  We keep that
 # information in a variable se we can use it in if_changed and friends.
index c48c0ac0a2970156c25331fbb51b05f2df03d68b..03065074f8084373852a8e1faff97b2b363656ee 100644 (file)
@@ -27,6 +27,7 @@
 
 #include <asm/arch/clock.h>
 #include <asm/arch/sram.h>
+#include <asm/div64.h>
 
 #include "prcm-regs.h"
 #include "memory.h"
index 0a6059e792c3fec732ff4f2ba8e460e8084fab7a..b998509cd5783fee476ff603253444ca94d7fc21 100644 (file)
@@ -507,7 +507,7 @@ out:
 /*
  * release_mem will be delayed.
  */
-static void do_release_mem(void)
+static void do_release_mem(struct work_struct *dummy)
 {
        mutex_lock(&cpustat.lock);
        cpustat.usecount.mem_delayed = 0;
@@ -519,7 +519,7 @@ static void do_release_mem(void)
        mutex_unlock(&cpustat.lock);
 }
 
-static DECLARE_WORK(mem_rel_work, (void (*)(void *))do_release_mem, NULL);
+static DECLARE_DELAYED_WORK(mem_rel_work, do_release_mem);
 
 int omap_dsp_release_mem(void)
 {
index 7cf47cce754964f8cd0d143da9b068dbb9c6852a..498e121b85a5326e10bf9c85b2371ec9b617a327 100644 (file)
@@ -218,9 +218,9 @@ static void gpio_sw_timer(unsigned long arg)
        schedule_work(&sw->work);
 }
 
-static void gpio_sw_handler(void *data)
+static void gpio_sw_handler(struct work_struct *work)
 {
-       struct gpio_switch *sw = data;
+       struct gpio_switch *sw = container_of(work, struct gpio_switch, work);
        int state;
 
        state = gpio_sw_get_state(sw);
@@ -319,7 +319,7 @@ static int __init new_switch(struct gpio_switch *sw)
                return r;
        }
 
-       INIT_WORK(&sw->work, gpio_sw_handler, sw);
+       INIT_WORK(&sw->work, gpio_sw_handler);
        init_timer(&sw->timer);
 
        sw->timer.function = gpio_sw_timer;
index 3d7ed6979aea40580cd67a6e28ebc74bce8e9dd6..8c37571d1cc20c68843d6f08614c69adc06b8185 100644 (file)
@@ -482,7 +482,7 @@ static inline void set_24xx_gpio_triggering(struct gpio_bank *bank, int gpio, in
                else
                        bank->enabled_non_wakeup_gpios &= ~gpio_bit;
        }
-       /* FIXME: Possibly do 'set_irq_handler(j, do_level_IRQ)' if only level
+       /* FIXME: Possibly do 'set_irq_handler(j, handle_level_irq)' if only level
         * triggering requested. */
 }
 #endif
@@ -914,7 +914,7 @@ void omap_free_gpio(int gpio)
  * line's interrupt handler has been run, we may miss some nested
  * interrupts.
  */
-static void gpio_irq_handler(unsigned int irq, struct irqdesc *desc)
+static void gpio_irq_handler(unsigned int irq, struct irq_desc *desc)
 {
        void __iomem *isr_reg = NULL;
        u32 isr;
@@ -986,7 +986,7 @@ static void gpio_irq_handler(unsigned int irq, struct irqdesc *desc)
 
                gpio_irq = bank->virtual_irq_start;
                for (; isr != 0; isr >>= 1, gpio_irq++) {
-                       struct irqdesc *d;
+                       struct irq_desc *d;
                        int irq_mask;
                        if (!(isr & 1))
                                continue;
@@ -1352,7 +1352,7 @@ static int __init _omap_gpio_init(void)
                                set_irq_chip(j, &mpuio_irq_chip);
                        else
                                set_irq_chip(j, &gpio_irq_chip);
-                       set_irq_handler(j, do_simple_IRQ);
+                       set_irq_handler(j, handle_simple_irq);
                        set_irq_flags(j, IRQF_VALID);
                }
                set_irq_chained_handler(bank->irq, gpio_irq_handler);
index 723c92fa1e1348fcf67086891618e16869709f9f..a159411605d67b08945011d88cbd84754fed0b8b 100644 (file)
@@ -109,9 +109,10 @@ EXPORT_SYMBOL(omap_mbox_msg_send);
 /*
  * Message receiver(workqueue)
  */
-static void mbox_msg_receiver(void *p)
+static void mbox_msg_receiver(struct work_struct *work)
 {
-       struct omap_mbox *mbox = (struct omap_mbox *)p;
+       struct omap_mbox *mbox =
+               container_of(work, struct omap_mbox, msg_receive);
        struct omap_mbq *mbq = mbox->mbq;
        mbox_msg_t msg;
        int was_full;
@@ -239,7 +240,7 @@ static int omap_mbox_init(struct omap_mbox *mbox)
        }
 
        spin_lock_init(&mbox->lock);
-       INIT_WORK(&mbox->msg_receive, mbox_msg_receiver, mbox);
+       INIT_WORK(&mbox->msg_receive, mbox_msg_receiver);
        init_waitqueue_head(&mbox->tx_waitq);
 
        ret = mbq_init(&mbox->mbq);
index cff7a75f6eeff5ccff8be287e0c26bbef1ad88f6..bc33d90b3764a30f2c7e97938a76eff4ef4aece5 100644 (file)
@@ -64,6 +64,8 @@ source "drivers/video/Kconfig"
 
 source "sound/Kconfig"
 
+source "drivers/hid/Kconfig"
+
 source "drivers/usb/Kconfig"
 
 source "drivers/mmc/Kconfig"
@@ -78,6 +80,8 @@ source "drivers/rtc/Kconfig"
 
 source "drivers/dma/Kconfig"
 
+source "drivers/kvm/Kconfig"
+
 source "drivers/ssi/Kconfig"
 
 endmenu
index de2c4cc02a6333f94f25b841b7b6b6064968d43e..e1989f3a268404226155f0b9ef93bcce4c5fc747 100644 (file)
@@ -74,6 +74,13 @@ config I2C_AMD8111
          This driver can also be built as a module.  If so, the module
          will be called i2c-amd8111.
 
+config I2C_AT91
+       tristate "Atmel AT91 I2C Two-Wire interface (TWI)"
+       depends on I2C && ARCH_AT91 && EXPERIMENTAL
+       help
+         This supports the use of the I2C interface on Atmel AT91
+         processors.
+
 config I2C_AU1550
        tristate "Au1550/Au1200 SMBus interface"
        depends on I2C && (SOC_AU1550 || SOC_AU1200)
@@ -125,6 +132,7 @@ config I2C_I801
            ICH7
            ESB2
            ICH8
+           ICH9
 
          This driver can also be built as a module.  If so, the module
          will be called i2c-i801.
@@ -195,11 +203,11 @@ config I2C_IBM_IIC
          will be called i2c-ibm_iic.
 
 config I2C_IOP3XX
-       tristate "Intel IOP3xx and IXP4xx on-chip I2C interface"
-       depends on (ARCH_IOP32X || ARCH_IOP33X || ARCH_IXP4XX) && I2C
+       tristate "Intel IOPx3xx and IXP4xx on-chip I2C interface"
+       depends on (ARCH_IOP32X || ARCH_IOP33X || ARCH_IXP4XX || ARCH_IOP13XX) && I2C
        help
          Say Y here if you want to use the IIC bus controller on
-         the Intel IOP3xx I/O Processors or IXP4xx Network Processors.
+         the Intel IOPx3xx I/O Processors or IXP4xx Network Processors.
 
          This driver can also be built as a module.  If so, the module
          will be called i2c-iop3xx.
@@ -208,18 +216,6 @@ config I2C_ISA
        tristate
        depends on I2C
 
-config I2C_ITE
-       tristate "ITE I2C Adapter"
-       depends on I2C && MIPS_ITE8172
-       select I2C_ALGOITE
-       help
-         This supports the ITE8172 I2C peripheral found on some MIPS
-         systems. Say Y if you have one of these. You should also say Y for
-         the ITE I2C driver algorithm support above.
-
-         This support is also available as a module.  If so, the module 
-         will be called i2c-ite.
-
 config I2C_IXP4XX
        tristate "IXP4xx GPIO-Based I2C Interface"
        depends on I2C && ARCH_IXP4XX
@@ -480,6 +476,17 @@ config I2C_STUB
 
          If you don't know what to do here, definitely say N.
 
+config I2C_VERSATILE
+       tristate "ARM Versatile/Realview I2C bus support"
+       depends on I2C && (ARCH_VERSATILE || ARCH_REALVIEW)
+       select I2C_ALGOBIT
+       help
+         Say yes if you want to support the I2C serial bus on ARMs Versatile
+         range of platforms.
+
+         This driver can also be built as a module.  If so, the module
+         will be called i2c-versatile.
+
 config I2C_VIA
        tristate "VIA 82C586B"
        depends on I2C && PCI && EXPERIMENTAL
@@ -547,11 +554,23 @@ config I2C_MV64XXX
          This driver can also be built as a module.  If so, the module
          will be called i2c-mv64xxx.
 
-config I2C_OMAP
-       tristate "OMAP I2C adapter"
-       depends on I2C && ARCH_OMAP
-       default y if MACH_OMAP_H3 || MACH_OMAP_OSK
+config I2C_PNX
+       tristate "I2C bus support for Philips PNX targets"
+       depends on ARCH_PNX4008 && I2C
        help
-         Support for TI OMAP I2C driver. Say yes if you want to use the OMAP
-         I2C interface.
+         This driver supports the Philips IP3204 I2C IP block master and/or
+         slave controller
+
+         This driver can also be built as a module.  If so, the module
+         will be called i2c-pnx.
+
+config I2C_PNX_EARLY
+       bool "Early initialization for I2C on PNXxxxx"
+       depends on I2C_PNX=y
+       help
+         Under certain circumstances one may need to make sure I2C on PNXxxxx
+         is initialized earlier than some other driver that depends on it
+         (for instance, that might be USB in case of PNX4008). With this
+         option turned on you can guarantee that.
+
 endmenu
index 4b8d219b6f7fcff57bf2b8ed4019a81cbd5359eb..d3e5f7f74648d09d13585ca361dfb25390f8468e 100644 (file)
@@ -212,5 +212,16 @@ config OMAP_PS2
 
          To compile this driver as a module, choose M here: the
          module will be called innovator_ps2.
-         
+
+config KEYBOARD_AAED2000
+       tristate "AAED-2000 keyboard"
+       depends on MACH_AAED2000
+       default y
+       help
+         Say Y here to enable the keyboard on the Agilent AAED-2000
+         development board.
+
+         To compile this driver as a module, choose M here: the
+         module will be called aaed2000_kbd.
+
 endif
index 963845a26ef2ac653d1fc9b637e6be25dae0f542..8b5429d8366e6231eac4575ab3ec2f216620c9ec 100644 (file)
@@ -18,3 +18,5 @@ obj-$(CONFIG_KEYBOARD_HIL)            += hil_kbd.o
 obj-$(CONFIG_KEYBOARD_HIL_OLD)         += hilkbd.o
 obj-$(CONFIG_KEYBOARD_OMAP)             += omap-keypad.o
 obj-$(CONFIG_OMAP_PS2)                 += innovator_ps2.o
+obj-$(CONFIG_KEYBOARD_AAED2000)         += aaed2000_kbd.o
+
index 2b16e3244b4ae873261c8869093a1a09fca84f1d..8b3a3715e0b216ff16cf597b2d651738e9c70b10 100644 (file)
@@ -147,6 +147,21 @@ config TOUCHSCREEN_TOUCHWIN
          To compile this driver as a module, choose M here: the
          module will be called touchwin.
 
+config TOUCHSCREEN_UCB1400
+       tristate "Philips UCB1400 touchscreen"
+       select AC97_BUS
+       help
+         This enables support for the Philips UCB1400 touchscreen interface.
+         The UCB1400 is an AC97 audio codec.  The touchscreen interface
+         will be initialized only after the ALSA subsystem has been
+         brought up and the UCB1400 detected.  You therefore have to
+         configure ALSA support as well (either built-in or modular,
+         independently of whether this driver is itself built-in or
+         modular) for this driver to work.
+
+         To compile this driver as a module, choose M here: the
+         module will be called ucb1400_ts.
+
 config TOUCHSCREEN_TSC2102
        tristate "TSC 2102 based touchscreens"
        depends on SPI_MASTER
index b1cdcaa7360ce3befa717d91630f5e5b625198e9..061bc14aeda41dcce8c9f9311adb17055ab1dba3 100644 (file)
@@ -12,7 +12,9 @@ obj-$(CONFIG_TOUCHSCREEN_ELO) += elo.o
 obj-$(CONFIG_TOUCHSCREEN_MTOUCH) += mtouch.o
 obj-$(CONFIG_TOUCHSCREEN_MK712)        += mk712.o
 obj-$(CONFIG_TOUCHSCREEN_HP600)        += hp680_ts_input.o
+obj-$(CONFIG_TOUCHSCREEN_PENMOUNT)     += penmount.o
 obj-$(CONFIG_TOUCHSCREEN_TOUCHRIGHT)   += touchright.o
 obj-$(CONFIG_TOUCHSCREEN_TOUCHWIN)     += touchwin.o
+obj-$(CONFIG_TOUCHSCREEN_UCB1400)      += ucb1400_ts.o
 obj-$(CONFIG_TOUCHSCREEN_TSC2102)      += tsc2102_ts.o
 obj-$(CONFIG_TOUCHSCREEN_OMAP) += omap/
index 5d12c3b79d80fd0e7c8a4ab3d88369089d3e3fee..7c2c352430f5500dda284735dcf656bc937baef5 100644 (file)
@@ -12,7 +12,7 @@ config NEW_LEDS
 
 config LEDS_CLASS
        tristate "LED Class Support"
-       depends NEW_LEDS
+       depends on NEW_LEDS
        help
          This option enables the led sysfs class in /sys/class/leds.  You'll
          need this to do anything useful with LEDs.  If unsure, say N.
@@ -21,28 +21,28 @@ comment "LED drivers"
 
 config LEDS_CORGI
        tristate "LED Support for the Sharp SL-C7x0 series"
-       depends LEDS_CLASS && PXA_SHARP_C7xx
+       depends on LEDS_CLASS && PXA_SHARP_C7xx
        help
          This option enables support for the LEDs on Sharp Zaurus
          SL-C7x0 series (C700, C750, C760, C860).
 
 config LEDS_LOCOMO
        tristate "LED Support for Locomo device"
-       depends LEDS_CLASS && SHARP_LOCOMO
+       depends on LEDS_CLASS && SHARP_LOCOMO
        help
          This option enables support for the LEDs on Sharp Locomo.
          Zaurus models SL-5500 and SL-5600.
 
 config LEDS_SPITZ
        tristate "LED Support for the Sharp SL-Cxx00 series"
-       depends LEDS_CLASS && PXA_SHARP_Cxx00
+       depends on LEDS_CLASS && PXA_SHARP_Cxx00
        help
          This option enables support for the LEDs on Sharp Zaurus
          SL-Cxx00 series (C1000, C3000, C3100).
 
 config LEDS_IXP4XX
        tristate "LED Support for GPIO connected LEDs on IXP4XX processors"
-       depends LEDS_CLASS && ARCH_IXP4XX
+       depends on LEDS_CLASS && ARCH_IXP4XX
        help
          This option enables support for the LEDs connected to GPIO
          outputs of the Intel IXP4XX processors.  To be useful the
@@ -51,7 +51,7 @@ config LEDS_IXP4XX
 
 config LEDS_TOSA
        tristate "LED Support for the Sharp SL-6000 series"
-       depends LEDS_CLASS && PXA_SHARPSL
+       depends on LEDS_CLASS && PXA_SHARPSL
        help
          This option enables support for the LEDs on Sharp Zaurus
          SL-6000 series.
@@ -65,7 +65,7 @@ config LEDS_S3C24XX
 
 config LEDS_AMS_DELTA
        tristate "LED Support for the Amstrad Delta (E3)"
-       depends LEDS_CLASS && MACH_AMS_DELTA
+       depends on LEDS_CLASS && MACH_AMS_DELTA
        help
          This option enables support for the LEDs on Amstrad Delta (E3).
 
@@ -76,9 +76,15 @@ config LEDS_NET48XX
          This option enables support for the Soekris net4801 and net4826 error
          LED.
 
+config LEDS_WRAP
+       tristate "LED Support for the WRAP series LEDs"
+       depends on LEDS_CLASS && SCx200_GPIO
+       help
+         This option enables support for the PCEngines WRAP programmable LEDs.
+
 config LEDS_OMAP_DEBUG
        boolean "LED Support for OMAP debug board LEDs"
-       depends LEDS_CLASS=y && ARCH_OMAP
+       depends on LEDS_CLASS=y && ARCH_OMAP
        help
          Enables support for the LEDs on the debug board used with OMAP
          reference boards like H2/H3/H4 and Perseus2.  Up to six of these
@@ -86,7 +92,7 @@ config LEDS_OMAP_DEBUG
 
 config LEDS_OMAP
        tristate "LED Support for OMAP GPIO LEDs"
-       depends LEDS_CLASS && ARCH_OMAP
+       depends on LEDS_CLASS && ARCH_OMAP
        help
          This option enables support for the LEDs on OMAP processors.
 
@@ -101,7 +107,7 @@ comment "LED Triggers"
 
 config LEDS_TRIGGERS
        bool "LED Trigger support"
-       depends NEW_LEDS
+       depends on NEW_LEDS
        help
          This option enables trigger support for the leds class.
          These triggers allow kernel events to drive the LEDs and can
@@ -109,21 +115,21 @@ config LEDS_TRIGGERS
 
 config LEDS_TRIGGER_TIMER
        tristate "LED Timer Trigger"
-       depends LEDS_TRIGGERS
+       depends on LEDS_TRIGGERS
        help
          This allows LEDs to be controlled by a programmable timer
          via sysfs. If unsure, say Y.
 
 config LEDS_TRIGGER_IDE_DISK
        bool "LED IDE Disk Trigger"
-       depends LEDS_TRIGGERS && BLK_DEV_IDEDISK
+       depends on LEDS_TRIGGERS && BLK_DEV_IDEDISK
        help
          This allows LEDs to be controlled by IDE disk activity.
          If unsure, say Y.
 
 config LEDS_TRIGGER_HEARTBEAT
        tristate "LED Heartbeat Trigger"
-       depends LEDS_TRIGGERS
+       depends on LEDS_TRIGGERS
        help
          This allows LEDs to be controlled by a CPU load average.
          The flash frequency is a hyperbolic function of the 1-minute
index 3bf3aa5f89075f2df7d88d1f3de406aa65dd9d9f..d39541a88d03eba4681880cce7d6e1f00d5b025f 100644 (file)
@@ -13,6 +13,7 @@ obj-$(CONFIG_LEDS_TOSA)                       += leds-tosa.o
 obj-$(CONFIG_LEDS_S3C24XX)             += leds-s3c24xx.o
 obj-$(CONFIG_LEDS_AMS_DELTA)           += leds-ams-delta.o
 obj-$(CONFIG_LEDS_NET48XX)             += leds-net48xx.o
+obj-$(CONFIG_LEDS_WRAP)                        += leds-wrap.o
 obj-$(CONFIG_LEDS_OMAP)                        += leds-omap.o
 obj-$(CONFIG_LEDS_OMAP_PWM)            += leds-omap-pwm.o
 
index 2a73361a3896dc0a357ccf76d09b5a462797a5f9..1852268ab4032059b9ce83123050277ce34e8b2f 100644 (file)
@@ -631,7 +631,7 @@ mmc_omap_prepare_dma(struct mmc_omap_host *host, struct mmc_data *data)
        frame = data->blksz;
        count = sg_dma_len(sg);
 
-       if ((data->blocks == 1) && (count > (data->blksz)))
+       if ((data->blocks == 1) && (count > data->blksz))
                count = frame;
 
        host->dma_len = count;
@@ -686,8 +686,7 @@ mmc_omap_prepare_dma(struct mmc_omap_host *host, struct mmc_data *data)
        }
 
        /* Max limit for DMA frame count is 0xffff */
-       if (unlikely(count > 0xffff))
-               BUG();
+       BUG_ON(count > 0xffff);
 
        OMAP_MMC_WRITE(host, BUF, buf);
        omap_set_dma_transfer_params(dma_ch, OMAP_DMA_DATA_TYPE_S16,
@@ -819,7 +818,6 @@ mmc_omap_prepare_data(struct mmc_omap_host *host, struct mmc_request *req)
                return;
        }
 
-
        block_size = data->blksz;
 
        OMAP_MMC_WRITE(host, NBLK, data->blocks - 1);
@@ -1009,7 +1007,7 @@ static int mmc_omap_get_ro(struct mmc_host *mmc)
        return host->wp_pin && omap_get_gpio_datain(host->wp_pin);
 }
 
-static struct mmc_host_ops mmc_omap_ops = {
+static const struct mmc_host_ops mmc_omap_ops = {
        .request        = mmc_omap_request,
        .set_ios        = mmc_omap_set_ios,
        .get_ro         = mmc_omap_get_ro,
@@ -1069,6 +1067,7 @@ static int __init mmc_omap_probe(struct platform_device *pdev)
                host->fclk = clk_get(&pdev->dev, "mmc_ck");
        else
                host->fclk = clk_get(&pdev->dev, "mmc_fck");
+
        if (IS_ERR(host->fclk)) {
                ret = PTR_ERR(host->fclk);
                goto err_free_iclk;
@@ -1135,7 +1134,7 @@ static int __init mmc_omap_probe(struct platform_device *pdev)
 
                omap_set_gpio_direction(host->switch_pin, 1);
                ret = request_irq(OMAP_GPIO_IRQ(host->switch_pin),
-                                 mmc_omap_switch_irq, SA_TRIGGER_RISING, DRIVER_NAME, host);
+                                 mmc_omap_switch_irq, IRQF_TRIGGER_RISING, DRIVER_NAME, host);
                if (ret) {
                        dev_warn(mmc_dev(host->mmc), "Unable to get IRQ for MMC cover switch\n");
                        omap_free_gpio(host->switch_pin);
@@ -1172,7 +1171,6 @@ no_switch:
                        clk_put(host->fclk);
                mmc_free_host(host->mmc);
        }
-
 err_free_power_gpio:
        if (host->power_pin >= 0)
                omap_free_gpio(host->power_pin);