Fix udev control path

Newer kernels uses power/control for USB suspend setup, not power/level.
Fix the udev rules generation.
This commit is contained in:
Matthew Garrett 2011-10-04 15:11:08 +01:00 committed by Bastien Nocera
parent f8aa82a554
commit 48ec64f683

View file

@ -52,7 +52,7 @@ static void print_driver (struct fp_driver *driver)
if (blacklist)
continue;
printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ATTRS{dev}==\"*\", ATTR{power/level}=\"auto\"\n", driver->id_table[i].vendor, driver->id_table[i].product);
printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ATTRS{dev}==\"*\", ATTR{power/control}=\"auto\"\n", driver->id_table[i].vendor, driver->id_table[i].product);
}
}