don't use mips_machgroup
authorGabor Juhos <juhosg@openwrt.org>
Wed, 30 Jan 2008 14:06:59 +0000 (14:06 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 30 Jan 2008 14:06:59 +0000 (14:06 +0000)
SVN-Revision: 10328

target/linux/adm5120/files/arch/mips/adm5120/prom.c
target/linux/adm5120/files/drivers/char/watchdog/adm5120_wdt.c
target/linux/adm5120/files/drivers/leds/leds-adm5120.c
target/linux/adm5120/files/drivers/usb/host/adm5120-drv.c
target/linux/adm5120/files/drivers/usb/host/adm5120-hcd.c

index e051d04c4e1a588b8b77aa0813c43cd693f4ec31..4ea9a6fdca7f721e2c492fda907280898872094f 100644 (file)
@@ -264,7 +264,6 @@ void __init prom_putchar(char ch)
 
 void __init prom_init(void)
 {
-       mips_machgroup = MACH_GROUP_ADM5120;
        prom_detect_machtype();
 
        prom_init_cmdline();
index 2439fbc7f21f3852ba14abb26d5cd6e7bb7aed97..cddb1721cf1acf52ffc36f14dbce0cb17688518d 100644 (file)
@@ -186,10 +186,6 @@ static int __init watchdog_init(void)
 {
        int ret;
 
-       /* There should be check for ADM5120 */
-       if (mips_machgroup != MACH_GROUP_ADM5120)
-               return -1;
-
        ret = misc_register(&wdt_miscdev);
 
        if (ret)
index 95b90fa474f52ccffb7b390270898f4b904dfdd6..54783abfaa0c352bad4a865c6edc2abf37014e35 100644 (file)
@@ -327,11 +327,6 @@ adm5120_leds_init(void)
        struct mach_data *mach;
        int i, ret;
 
-       if (mips_machgroup != MACH_GROUP_ADM5120) {
-               ret = -EINVAL;
-               goto err;
-       }
-
        mach = adm5120_leds_findmach(mips_machtype);
        if (mach == NULL) {
                printk(KERN_ERR "leds-adm5120: unsupported board\n");
index 02c80f3fdfe2483d50b890dc9017b3188168c67f..ca7f8ef64bf0db471f6417456a1a7e1e3f8d656c 100644 (file)
@@ -188,9 +188,6 @@ static int usb_hcd_adm5120_probe(struct platform_device *pdev)
 {
        int ret;
 
-       if (mips_machgroup != MACH_GROUP_ADM5120)
-               return -ENODEV;
-
        ret = admhc_adm5120_probe(&adm5120_hc_driver, pdev);
 
        return ret;
index 42eb8f5443cc7e9a01a153b7c30debe5d1067c01..2d2604aa78c38b431dff1d75453d482a0c5ae604 100644 (file)
@@ -45,7 +45,7 @@
 #include "../core/hcd.h"
 #include "../core/hub.h"
 
-#define DRIVER_VERSION "0.16.2"
+#define DRIVER_VERSION "0.16.3"
 #define DRIVER_AUTHOR  "Gabor Juhos <juhosg at openwrt.org>"
 #define DRIVER_DESC    "ADMtek USB 1.1 Host Controller Driver"