hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/usb/storage/sddr55.c
....@@ -29,6 +29,7 @@
2929 MODULE_DESCRIPTION("Driver for SanDisk SDDR-55 SmartMedia reader");
3030 MODULE_AUTHOR("Simon Munton");
3131 MODULE_LICENSE("GPL");
32
+MODULE_IMPORT_NS(USB_STORAGE);
3233
3334 /*
3435 * The table of devices
....@@ -553,8 +554,8 @@
553554
554555 static unsigned long sddr55_get_capacity(struct us_data *us) {
555556
556
- unsigned char uninitialized_var(manufacturerID);
557
- unsigned char uninitialized_var(deviceID);
557
+ unsigned char manufacturerID;
558
+ unsigned char deviceID;
558559 int result;
559560 struct sddr55_card_info *info = (struct sddr55_card_info *)us->extra;
560561
....@@ -591,7 +592,7 @@
591592 case 0x64:
592593 info->pageshift = 8;
593594 info->smallpageshift = 1;
594
- /* fall through */
595
+ fallthrough;
595596 case 0x5d: // 5d is a ROM card with pagesize 512.
596597 return 0x00200000;
597598