| .. | .. |
|---|
| 26 | 26 | void cfi_udelay(int us) |
|---|
| 27 | 27 | { |
|---|
| 28 | 28 | if (us >= 1000) { |
|---|
| 29 | | - msleep((us+999)/1000); |
|---|
| 29 | + msleep(DIV_ROUND_UP(us, 1000)); |
|---|
| 30 | 30 | } else { |
|---|
| 31 | 31 | udelay(us); |
|---|
| 32 | 32 | cond_resched(); |
|---|
| .. | .. |
|---|
| 109 | 109 | case 8: |
|---|
| 110 | 110 | onecmd |= (onecmd << (chip_mode * 32)); |
|---|
| 111 | 111 | #endif |
|---|
| 112 | + fallthrough; |
|---|
| 112 | 113 | case 4: |
|---|
| 113 | 114 | onecmd |= (onecmd << (chip_mode * 16)); |
|---|
| 115 | + fallthrough; |
|---|
| 114 | 116 | case 2: |
|---|
| 115 | 117 | onecmd |= (onecmd << (chip_mode * 8)); |
|---|
| 118 | + fallthrough; |
|---|
| 116 | 119 | case 1: |
|---|
| 117 | 120 | ; |
|---|
| 118 | 121 | } |
|---|
| .. | .. |
|---|
| 162 | 165 | case 8: |
|---|
| 163 | 166 | res |= (onestat >> (chip_mode * 32)); |
|---|
| 164 | 167 | #endif |
|---|
| 168 | + fallthrough; |
|---|
| 165 | 169 | case 4: |
|---|
| 166 | 170 | res |= (onestat >> (chip_mode * 16)); |
|---|
| 171 | + fallthrough; |
|---|
| 167 | 172 | case 2: |
|---|
| 168 | 173 | res |= (onestat >> (chip_mode * 8)); |
|---|
| 174 | + fallthrough; |
|---|
| 169 | 175 | case 1: |
|---|
| 170 | 176 | ; |
|---|
| 171 | 177 | } |
|---|