Fix handling of the HP/Acer 'DMAR at zero' BIOS error for machines with <4GiB RAM.
[safe/jmp/linux-2.6] / drivers / leds / leds-atmel-pwm.c
index af61f55..52297c3 100644 (file)
@@ -37,7 +37,7 @@ static int __init pwmled_probe(struct platform_device *pdev)
 {
        const struct gpio_led_platform_data     *pdata;
        struct pwmled                           *leds;
-       unsigned                                i;
+       int                                     i;
        int                                     status;
 
        pdata = pdev->dev.platform_data;
@@ -132,6 +132,9 @@ static int __exit pwmled_remove(struct platform_device *pdev)
        return 0;
 }
 
+/* work with hotplug and coldplug */
+MODULE_ALIAS("platform:leds-atmel-pwm");
+
 static struct platform_driver pwmled_driver = {
        .driver = {
                .name =         "leds-atmel-pwm",