.. | .. |
---|
29 | 29 | MODULE_DESCRIPTION("Driver for SanDisk SDDR-55 SmartMedia reader"); |
---|
30 | 30 | MODULE_AUTHOR("Simon Munton"); |
---|
31 | 31 | MODULE_LICENSE("GPL"); |
---|
| 32 | +MODULE_IMPORT_NS(USB_STORAGE); |
---|
32 | 33 | |
---|
33 | 34 | /* |
---|
34 | 35 | * The table of devices |
---|
.. | .. |
---|
553 | 554 | |
---|
554 | 555 | static unsigned long sddr55_get_capacity(struct us_data *us) { |
---|
555 | 556 | |
---|
556 | | - unsigned char uninitialized_var(manufacturerID); |
---|
557 | | - unsigned char uninitialized_var(deviceID); |
---|
| 557 | + unsigned char manufacturerID; |
---|
| 558 | + unsigned char deviceID; |
---|
558 | 559 | int result; |
---|
559 | 560 | struct sddr55_card_info *info = (struct sddr55_card_info *)us->extra; |
---|
560 | 561 | |
---|
.. | .. |
---|
591 | 592 | case 0x64: |
---|
592 | 593 | info->pageshift = 8; |
---|
593 | 594 | info->smallpageshift = 1; |
---|
594 | | - /* fall through */ |
---|
| 595 | + fallthrough; |
---|
595 | 596 | case 0x5d: // 5d is a ROM card with pagesize 512. |
---|
596 | 597 | return 0x00200000; |
---|
597 | 598 | |
---|