diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-18 13:37:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-18 13:37:40 -0400 |
commit | e16b396ce314b2bcdfe6c173fe075bf8e3432368 (patch) | |
tree | 640f0f56f2ea676647af4eb42d32fa56be2ee549 /drivers | |
parent | 7fd23a24717a327a66f3c32d11a20a2f169c824f (diff) | |
parent | e6e8dd5055a974935af1398c8648d4a9359b0ecb (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (47 commits)
doc: CONFIG_UNEVICTABLE_LRU doesn't exist anymore
Update cpuset info & webiste for cgroups
dcdbas: force SMI to happen when expected
arch/arm/Kconfig: remove one to many l's in the word.
asm-generic/user.h: Fix spelling in comment
drm: fix printk typo 'sracth'
Remove one to many n's in a word
Documentation/filesystems/romfs.txt: fixing link to genromfs
drivers:scsi Change printk typo initate -> initiate
serial, pch uart: Remove duplicate inclusion of linux/pci.h header
fs/eventpoll.c: fix spelling
mm: Fix out-of-date comments which refers non-existent functions
drm: Fix printk typo 'failled'
coh901318.c: Change initate to initiate.
mbox-db5500.c Change initate to initiate.
edac: correct i82975x error-info reported
edac: correct i82975x mci initialisation
edac: correct commented info
fs: update comments to point correct document
target: remove duplicate include of target/target_core_device.h from drivers/target/target_core_hba.c
...
Trivial conflict in fs/eventpoll.c (spelling vs addition)
Diffstat (limited to 'drivers')
42 files changed, 105 insertions, 93 deletions
diff --git a/drivers/atm/firestream.c b/drivers/atm/firestream.c index 7d912baf01d4..049650d42c88 100644 --- a/drivers/atm/firestream.c +++ b/drivers/atm/firestream.c | |||
@@ -1031,7 +1031,7 @@ static int fs_open(struct atm_vcc *atm_vcc) | |||
1031 | /* We now use the "submit_command" function to submit commands to | 1031 | /* We now use the "submit_command" function to submit commands to |
1032 | the firestream. There is a define up near the definition of | 1032 | the firestream. There is a define up near the definition of |
1033 | that routine that switches this routine between immediate write | 1033 | that routine that switches this routine between immediate write |
1034 | to the immediate comamnd registers and queuing the commands in | 1034 | to the immediate command registers and queuing the commands in |
1035 | the HPTXQ for execution. This last technique might be more | 1035 | the HPTXQ for execution. This last technique might be more |
1036 | efficient if we know we're going to submit a whole lot of | 1036 | efficient if we know we're going to submit a whole lot of |
1037 | commands in one go, but this driver is not setup to be able to | 1037 | commands in one go, but this driver is not setup to be able to |
diff --git a/drivers/block/smart1,2.h b/drivers/block/smart1,2.h index a0b403a6b4ed..e5565fbaeb30 100644 --- a/drivers/block/smart1,2.h +++ b/drivers/block/smart1,2.h | |||
@@ -95,7 +95,7 @@ static unsigned long smart4_completed(ctlr_info_t *h) | |||
95 | /* | 95 | /* |
96 | * This hardware returns interrupt pending at a different place and | 96 | * This hardware returns interrupt pending at a different place and |
97 | * it does not tell us if the fifo is empty, we will have check | 97 | * it does not tell us if the fifo is empty, we will have check |
98 | * that by getting a 0 back from the comamnd_completed call. | 98 | * that by getting a 0 back from the command_completed call. |
99 | */ | 99 | */ |
100 | static unsigned long smart4_intr_pending(ctlr_info_t *h) | 100 | static unsigned long smart4_intr_pending(ctlr_info_t *h) |
101 | { | 101 | { |
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 7e0ebd4a1a74..866811428e20 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c | |||
@@ -433,7 +433,7 @@ static void btusb_isoc_complete(struct urb *urb) | |||
433 | } | 433 | } |
434 | } | 434 | } |
435 | 435 | ||
436 | static void inline __fill_isoc_descriptor(struct urb *urb, int len, int mtu) | 436 | static inline void __fill_isoc_descriptor(struct urb *urb, int len, int mtu) |
437 | { | 437 | { |
438 | int i, offset = 0; | 438 | int i, offset = 0; |
439 | 439 | ||
@@ -780,7 +780,7 @@ static void btusb_notify(struct hci_dev *hdev, unsigned int evt) | |||
780 | } | 780 | } |
781 | } | 781 | } |
782 | 782 | ||
783 | static int inline __set_isoc_interface(struct hci_dev *hdev, int altsetting) | 783 | static inline int __set_isoc_interface(struct hci_dev *hdev, int altsetting) |
784 | { | 784 | { |
785 | struct btusb_data *data = hdev->driver_data; | 785 | struct btusb_data *data = hdev->driver_data; |
786 | struct usb_interface *intf = data->isoc; | 786 | struct usb_interface *intf = data->isoc; |
diff --git a/drivers/cpuidle/sysfs.c b/drivers/cpuidle/sysfs.c index 0310ffaec9df..be7917ec40c9 100644 --- a/drivers/cpuidle/sysfs.c +++ b/drivers/cpuidle/sysfs.c | |||
@@ -300,7 +300,7 @@ static struct kobj_type ktype_state_cpuidle = { | |||
300 | .release = cpuidle_state_sysfs_release, | 300 | .release = cpuidle_state_sysfs_release, |
301 | }; | 301 | }; |
302 | 302 | ||
303 | static void inline cpuidle_free_state_kobj(struct cpuidle_device *device, int i) | 303 | static inline void cpuidle_free_state_kobj(struct cpuidle_device *device, int i) |
304 | { | 304 | { |
305 | kobject_put(&device->kobjs[i]->kobj); | 305 | kobject_put(&device->kobjs[i]->kobj); |
306 | wait_for_completion(&device->kobjs[i]->kobj_unregister); | 306 | wait_for_completion(&device->kobjs[i]->kobj_unregister); |
diff --git a/drivers/dma/coh901318.c b/drivers/dma/coh901318.c index a6656834f0ff..00deabd9a04b 100644 --- a/drivers/dma/coh901318.c +++ b/drivers/dma/coh901318.c | |||
@@ -849,7 +849,7 @@ static irqreturn_t dma_irq_handler(int irq, void *dev_id) | |||
849 | 849 | ||
850 | /* Must clear TC interrupt before calling | 850 | /* Must clear TC interrupt before calling |
851 | * dma_tc_handle | 851 | * dma_tc_handle |
852 | * in case tc_handle initate a new dma job | 852 | * in case tc_handle initiate a new dma job |
853 | */ | 853 | */ |
854 | __set_bit(i, virtbase + COH901318_TC_INT_CLEAR1); | 854 | __set_bit(i, virtbase + COH901318_TC_INT_CLEAR1); |
855 | 855 | ||
@@ -894,7 +894,7 @@ static irqreturn_t dma_irq_handler(int irq, void *dev_id) | |||
894 | } | 894 | } |
895 | /* Must clear TC interrupt before calling | 895 | /* Must clear TC interrupt before calling |
896 | * dma_tc_handle | 896 | * dma_tc_handle |
897 | * in case tc_handle initate a new dma job | 897 | * in case tc_handle initiate a new dma job |
898 | */ | 898 | */ |
899 | __set_bit(i, virtbase + COH901318_TC_INT_CLEAR2); | 899 | __set_bit(i, virtbase + COH901318_TC_INT_CLEAR2); |
900 | 900 | ||
diff --git a/drivers/dma/shdma.c b/drivers/dma/shdma.c index 28720d3103c4..6451b581a70b 100644 --- a/drivers/dma/shdma.c +++ b/drivers/dma/shdma.c | |||
@@ -750,7 +750,7 @@ static void sh_chan_xfer_ld_queue(struct sh_dmae_chan *sh_chan) | |||
750 | return; | 750 | return; |
751 | } | 751 | } |
752 | 752 | ||
753 | /* Find the first not transferred desciptor */ | 753 | /* Find the first not transferred descriptor */ |
754 | list_for_each_entry(desc, &sh_chan->ld_queue, node) | 754 | list_for_each_entry(desc, &sh_chan->ld_queue, node) |
755 | if (desc->mark == DESC_SUBMITTED) { | 755 | if (desc->mark == DESC_SUBMITTED) { |
756 | dev_dbg(sh_chan->dev, "Queue #%d to %d: %u@%x -> %x\n", | 756 | dev_dbg(sh_chan->dev, "Queue #%d to %d: %u@%x -> %x\n", |
diff --git a/drivers/dma/timb_dma.c b/drivers/dma/timb_dma.c index 3b88a4e7c98a..f69f90a61873 100644 --- a/drivers/dma/timb_dma.c +++ b/drivers/dma/timb_dma.c | |||
@@ -629,7 +629,7 @@ static int td_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd, | |||
629 | desc_node) | 629 | desc_node) |
630 | list_move(&td_desc->desc_node, &td_chan->free_list); | 630 | list_move(&td_desc->desc_node, &td_chan->free_list); |
631 | 631 | ||
632 | /* now tear down the runnning */ | 632 | /* now tear down the running */ |
633 | __td_finish(td_chan); | 633 | __td_finish(td_chan); |
634 | spin_unlock_bh(&td_chan->lock); | 634 | spin_unlock_bh(&td_chan->lock); |
635 | 635 | ||
diff --git a/drivers/edac/i7300_edac.c b/drivers/edac/i7300_edac.c index 05523b504271..76d1f576cdc8 100644 --- a/drivers/edac/i7300_edac.c +++ b/drivers/edac/i7300_edac.c | |||
@@ -162,7 +162,7 @@ static struct edac_pci_ctl_info *i7300_pci; | |||
162 | #define AMBPRESENT_0 0x64 | 162 | #define AMBPRESENT_0 0x64 |
163 | #define AMBPRESENT_1 0x66 | 163 | #define AMBPRESENT_1 0x66 |
164 | 164 | ||
165 | const static u16 mtr_regs[MAX_SLOTS] = { | 165 | static const u16 mtr_regs[MAX_SLOTS] = { |
166 | 0x80, 0x84, 0x88, 0x8c, | 166 | 0x80, 0x84, 0x88, 0x8c, |
167 | 0x82, 0x86, 0x8a, 0x8e | 167 | 0x82, 0x86, 0x8a, 0x8e |
168 | }; | 168 | }; |
diff --git a/drivers/edac/i82975x_edac.c b/drivers/edac/i82975x_edac.c index 3218819b7286..92e65e7038e9 100644 --- a/drivers/edac/i82975x_edac.c +++ b/drivers/edac/i82975x_edac.c | |||
@@ -160,8 +160,8 @@ NOTE: Only ONE of the three must be enabled | |||
160 | * 3:2 Rank 1 architecture | 160 | * 3:2 Rank 1 architecture |
161 | * 1:0 Rank 0 architecture | 161 | * 1:0 Rank 0 architecture |
162 | * | 162 | * |
163 | * 00 => x16 devices; i.e 4 banks | 163 | * 00 => 4 banks |
164 | * 01 => x8 devices; i.e 8 banks | 164 | * 01 => 8 banks |
165 | */ | 165 | */ |
166 | #define I82975X_C0BNKARC 0x10e | 166 | #define I82975X_C0BNKARC 0x10e |
167 | #define I82975X_C1BNKARC 0x18e | 167 | #define I82975X_C1BNKARC 0x18e |
@@ -278,6 +278,7 @@ static int i82975x_process_error_info(struct mem_ctl_info *mci, | |||
278 | struct i82975x_error_info *info, int handle_errors) | 278 | struct i82975x_error_info *info, int handle_errors) |
279 | { | 279 | { |
280 | int row, multi_chan, chan; | 280 | int row, multi_chan, chan; |
281 | unsigned long offst, page; | ||
281 | 282 | ||
282 | multi_chan = mci->csrows[0].nr_channels - 1; | 283 | multi_chan = mci->csrows[0].nr_channels - 1; |
283 | 284 | ||
@@ -292,17 +293,19 @@ static int i82975x_process_error_info(struct mem_ctl_info *mci, | |||
292 | info->errsts = info->errsts2; | 293 | info->errsts = info->errsts2; |
293 | } | 294 | } |
294 | 295 | ||
295 | chan = info->eap & 1; | 296 | page = (unsigned long) info->eap; |
296 | info->eap >>= 1; | 297 | if (info->xeap & 1) |
297 | if (info->xeap ) | 298 | page |= 0x100000000ul; |
298 | info->eap |= 0x80000000; | 299 | chan = page & 1; |
299 | info->eap >>= PAGE_SHIFT; | 300 | page >>= 1; |
300 | row = edac_mc_find_csrow_by_page(mci, info->eap); | 301 | offst = page & ((1 << PAGE_SHIFT) - 1); |
302 | page >>= PAGE_SHIFT; | ||
303 | row = edac_mc_find_csrow_by_page(mci, page); | ||
301 | 304 | ||
302 | if (info->errsts & 0x0002) | 305 | if (info->errsts & 0x0002) |
303 | edac_mc_handle_ue(mci, info->eap, 0, row, "i82975x UE"); | 306 | edac_mc_handle_ue(mci, page, offst , row, "i82975x UE"); |
304 | else | 307 | else |
305 | edac_mc_handle_ce(mci, info->eap, 0, info->derrsyn, row, | 308 | edac_mc_handle_ce(mci, page, offst, info->derrsyn, row, |
306 | multi_chan ? chan : 0, | 309 | multi_chan ? chan : 0, |
307 | "i82975x CE"); | 310 | "i82975x CE"); |
308 | 311 | ||
@@ -344,11 +347,7 @@ static int dual_channel_active(void __iomem *mch_window) | |||
344 | static enum dev_type i82975x_dram_type(void __iomem *mch_window, int rank) | 347 | static enum dev_type i82975x_dram_type(void __iomem *mch_window, int rank) |
345 | { | 348 | { |
346 | /* | 349 | /* |
347 | * ASUS P5W DH either does not program this register or programs | 350 | * ECC is possible on i92975x ONLY with DEV_X8 |
348 | * it wrong! | ||
349 | * ECC is possible on i92975x ONLY with DEV_X8 which should mean 'val' | ||
350 | * for each rank should be 01b - the LSB of the word should be 0x55; | ||
351 | * but it reads 0! | ||
352 | */ | 351 | */ |
353 | return DEV_X8; | 352 | return DEV_X8; |
354 | } | 353 | } |
@@ -356,11 +355,15 @@ static enum dev_type i82975x_dram_type(void __iomem *mch_window, int rank) | |||
356 | static void i82975x_init_csrows(struct mem_ctl_info *mci, | 355 | static void i82975x_init_csrows(struct mem_ctl_info *mci, |
357 | struct pci_dev *pdev, void __iomem *mch_window) | 356 | struct pci_dev *pdev, void __iomem *mch_window) |
358 | { | 357 | { |
358 | static const char *labels[4] = { | ||
359 | "DIMM A1", "DIMM A2", | ||
360 | "DIMM B1", "DIMM B2" | ||
361 | }; | ||
359 | struct csrow_info *csrow; | 362 | struct csrow_info *csrow; |
360 | unsigned long last_cumul_size; | 363 | unsigned long last_cumul_size; |
361 | u8 value; | 364 | u8 value; |
362 | u32 cumul_size; | 365 | u32 cumul_size; |
363 | int index; | 366 | int index, chan; |
364 | 367 | ||
365 | last_cumul_size = 0; | 368 | last_cumul_size = 0; |
366 | 369 | ||
@@ -369,11 +372,7 @@ static void i82975x_init_csrows(struct mem_ctl_info *mci, | |||
369 | * The dram row boundary (DRB) reg values are boundary address | 372 | * The dram row boundary (DRB) reg values are boundary address |
370 | * for each DRAM row with a granularity of 32 or 64MB (single/dual | 373 | * for each DRAM row with a granularity of 32 or 64MB (single/dual |
371 | * channel operation). DRB regs are cumulative; therefore DRB7 will | 374 | * channel operation). DRB regs are cumulative; therefore DRB7 will |
372 | * contain the total memory contained in all eight rows. | 375 | * contain the total memory contained in all rows. |
373 | * | ||
374 | * FIXME: | ||
375 | * EDAC currently works for Dual-channel Interleaved configuration. | ||
376 | * Other configurations, which the chip supports, need fixing/testing. | ||
377 | * | 376 | * |
378 | */ | 377 | */ |
379 | 378 | ||
@@ -384,8 +383,26 @@ static void i82975x_init_csrows(struct mem_ctl_info *mci, | |||
384 | ((index >= 4) ? 0x80 : 0)); | 383 | ((index >= 4) ? 0x80 : 0)); |
385 | cumul_size = value; | 384 | cumul_size = value; |
386 | cumul_size <<= (I82975X_DRB_SHIFT - PAGE_SHIFT); | 385 | cumul_size <<= (I82975X_DRB_SHIFT - PAGE_SHIFT); |
386 | /* | ||
387 | * Adjust cumul_size w.r.t number of channels | ||
388 | * | ||
389 | */ | ||
390 | if (csrow->nr_channels > 1) | ||
391 | cumul_size <<= 1; | ||
387 | debugf3("%s(): (%d) cumul_size 0x%x\n", __func__, index, | 392 | debugf3("%s(): (%d) cumul_size 0x%x\n", __func__, index, |
388 | cumul_size); | 393 | cumul_size); |
394 | |||
395 | /* | ||
396 | * Initialise dram labels | ||
397 | * index values: | ||
398 | * [0-7] for single-channel; i.e. csrow->nr_channels = 1 | ||
399 | * [0-3] for dual-channel; i.e. csrow->nr_channels = 2 | ||
400 | */ | ||
401 | for (chan = 0; chan < csrow->nr_channels; chan++) | ||
402 | strncpy(csrow->channels[chan].label, | ||
403 | labels[(index >> 1) + (chan * 2)], | ||
404 | EDAC_MC_LABEL_LEN); | ||
405 | |||
389 | if (cumul_size == last_cumul_size) | 406 | if (cumul_size == last_cumul_size) |
390 | continue; /* not populated */ | 407 | continue; /* not populated */ |
391 | 408 | ||
@@ -393,8 +410,8 @@ static void i82975x_init_csrows(struct mem_ctl_info *mci, | |||
393 | csrow->last_page = cumul_size - 1; | 410 | csrow->last_page = cumul_size - 1; |
394 | csrow->nr_pages = cumul_size - last_cumul_size; | 411 | csrow->nr_pages = cumul_size - last_cumul_size; |
395 | last_cumul_size = cumul_size; | 412 | last_cumul_size = cumul_size; |
396 | csrow->grain = 1 << 7; /* I82975X_EAP has 128B resolution */ | 413 | csrow->grain = 1 << 6; /* I82975X_EAP has 64B resolution */ |
397 | csrow->mtype = MEM_DDR; /* i82975x supports only DDR2 */ | 414 | csrow->mtype = MEM_DDR2; /* I82975x supports only DDR2 */ |
398 | csrow->dtype = i82975x_dram_type(mch_window, index); | 415 | csrow->dtype = i82975x_dram_type(mch_window, index); |
399 | csrow->edac_mode = EDAC_SECDED; /* only supported */ | 416 | csrow->edac_mode = EDAC_SECDED; /* only supported */ |
400 | } | 417 | } |
@@ -515,18 +532,20 @@ static int i82975x_probe1(struct pci_dev *pdev, int dev_idx) | |||
515 | 532 | ||
516 | debugf3("%s(): init mci\n", __func__); | 533 | debugf3("%s(): init mci\n", __func__); |
517 | mci->dev = &pdev->dev; | 534 | mci->dev = &pdev->dev; |
518 | mci->mtype_cap = MEM_FLAG_DDR; | 535 | mci->mtype_cap = MEM_FLAG_DDR2; |
519 | mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; | 536 | mci->edac_ctl_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; |
520 | mci->edac_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; | 537 | mci->edac_cap = EDAC_FLAG_NONE | EDAC_FLAG_SECDED; |
521 | mci->mod_name = EDAC_MOD_STR; | 538 | mci->mod_name = EDAC_MOD_STR; |
522 | mci->mod_ver = I82975X_REVISION; | 539 | mci->mod_ver = I82975X_REVISION; |
523 | mci->ctl_name = i82975x_devs[dev_idx].ctl_name; | 540 | mci->ctl_name = i82975x_devs[dev_idx].ctl_name; |
541 | mci->dev_name = pci_name(pdev); | ||
524 | mci->edac_check = i82975x_check; | 542 | mci->edac_check = i82975x_check; |
525 | mci->ctl_page_to_phys = NULL; | 543 | mci->ctl_page_to_phys = NULL; |
526 | debugf3("%s(): init pvt\n", __func__); | 544 | debugf3("%s(): init pvt\n", __func__); |
527 | pvt = (struct i82975x_pvt *) mci->pvt_info; | 545 | pvt = (struct i82975x_pvt *) mci->pvt_info; |
528 | pvt->mch_window = mch_window; | 546 | pvt->mch_window = mch_window; |
529 | i82975x_init_csrows(mci, pdev, mch_window); | 547 | i82975x_init_csrows(mci, pdev, mch_window); |
548 | mci->scrub_mode = SCRUB_HW_SRC; | ||
530 | i82975x_get_error_info(mci, &discard); /* clear counters */ | 549 | i82975x_get_error_info(mci, &discard); /* clear counters */ |
531 | 550 | ||
532 | /* finalize this instance of memory controller with edac core */ | 551 | /* finalize this instance of memory controller with edac core */ |
@@ -664,7 +683,7 @@ module_init(i82975x_init); | |||
664 | module_exit(i82975x_exit); | 683 | module_exit(i82975x_exit); |
665 | 684 | ||
666 | MODULE_LICENSE("GPL"); | 685 | MODULE_LICENSE("GPL"); |
667 | MODULE_AUTHOR("Arvind R. <arvind@acarlab.com>"); | 686 | MODULE_AUTHOR("Arvind R. <arvino55@gmail.com>"); |
668 | MODULE_DESCRIPTION("MC support for Intel 82975 memory hub controllers"); | 687 | MODULE_DESCRIPTION("MC support for Intel 82975 memory hub controllers"); |
669 | 688 | ||
670 | module_param(edac_op_state, int, 0444); | 689 | module_param(edac_op_state, int, 0444); |
diff --git a/drivers/firmware/dcdbas.c b/drivers/firmware/dcdbas.c index 69ad529d92fb..ea5ac2dc1233 100644 --- a/drivers/firmware/dcdbas.c +++ b/drivers/firmware/dcdbas.c | |||
@@ -268,8 +268,10 @@ int dcdbas_smi_request(struct smi_cmd *smi_cmd) | |||
268 | } | 268 | } |
269 | 269 | ||
270 | /* generate SMI */ | 270 | /* generate SMI */ |
271 | /* inb to force posted write through and make SMI happen now */ | ||
271 | asm volatile ( | 272 | asm volatile ( |
272 | "outb %b0,%w1" | 273 | "outb %b0,%w1\n" |
274 | "inb %w1" | ||
273 | : /* no output args */ | 275 | : /* no output args */ |
274 | : "a" (smi_cmd->command_code), | 276 | : "a" (smi_cmd->command_code), |
275 | "d" (smi_cmd->command_address), | 277 | "d" (smi_cmd->command_address), |
diff --git a/drivers/gpu/drm/drm_sman.c b/drivers/gpu/drm/drm_sman.c index 463aed9403db..34664587a74e 100644 --- a/drivers/gpu/drm/drm_sman.c +++ b/drivers/gpu/drm/drm_sman.c | |||
@@ -59,9 +59,7 @@ drm_sman_init(struct drm_sman * sman, unsigned int num_managers, | |||
59 | { | 59 | { |
60 | int ret = 0; | 60 | int ret = 0; |
61 | 61 | ||
62 | sman->mm = (struct drm_sman_mm *) kcalloc(num_managers, | 62 | sman->mm = kcalloc(num_managers, sizeof(*sman->mm), GFP_KERNEL); |
63 | sizeof(*sman->mm), | ||
64 | GFP_KERNEL); | ||
65 | if (!sman->mm) { | 63 | if (!sman->mm) { |
66 | ret = -ENOMEM; | 64 | ret = -ENOMEM; |
67 | goto out; | 65 | goto out; |
diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index b9427e689cf3..941080a77940 100644 --- a/drivers/gpu/drm/radeon/evergreen.c +++ b/drivers/gpu/drm/radeon/evergreen.c | |||
@@ -2987,7 +2987,7 @@ int evergreen_resume(struct radeon_device *rdev) | |||
2987 | 2987 | ||
2988 | r = r600_ib_test(rdev); | 2988 | r = r600_ib_test(rdev); |
2989 | if (r) { | 2989 | if (r) { |
2990 | DRM_ERROR("radeon: failled testing IB (%d).\n", r); | 2990 | DRM_ERROR("radeon: failed testing IB (%d).\n", r); |
2991 | return r; | 2991 | return r; |
2992 | } | 2992 | } |
2993 | 2993 | ||
diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index fcc23e4e0b3c..f2204cb1ccdf 100644 --- a/drivers/gpu/drm/radeon/r100.c +++ b/drivers/gpu/drm/radeon/r100.c | |||
@@ -3617,7 +3617,7 @@ int r100_ib_test(struct radeon_device *rdev) | |||
3617 | if (i < rdev->usec_timeout) { | 3617 | if (i < rdev->usec_timeout) { |
3618 | DRM_INFO("ib test succeeded in %u usecs\n", i); | 3618 | DRM_INFO("ib test succeeded in %u usecs\n", i); |
3619 | } else { | 3619 | } else { |
3620 | DRM_ERROR("radeon: ib test failed (sracth(0x%04X)=0x%08X)\n", | 3620 | DRM_ERROR("radeon: ib test failed (scratch(0x%04X)=0x%08X)\n", |
3621 | scratch, tmp); | 3621 | scratch, tmp); |
3622 | r = -EINVAL; | 3622 | r = -EINVAL; |
3623 | } | 3623 | } |
@@ -3637,13 +3637,13 @@ int r100_ib_init(struct radeon_device *rdev) | |||
3637 | 3637 | ||
3638 | r = radeon_ib_pool_init(rdev); | 3638 | r = radeon_ib_pool_init(rdev); |
3639 | if (r) { | 3639 | if (r) { |
3640 | dev_err(rdev->dev, "failled initializing IB pool (%d).\n", r); | 3640 | dev_err(rdev->dev, "failed initializing IB pool (%d).\n", r); |
3641 | r100_ib_fini(rdev); | 3641 | r100_ib_fini(rdev); |
3642 | return r; | 3642 | return r; |
3643 | } | 3643 | } |
3644 | r = r100_ib_test(rdev); | 3644 | r = r100_ib_test(rdev); |
3645 | if (r) { | 3645 | if (r) { |
3646 | dev_err(rdev->dev, "failled testing IB (%d).\n", r); | 3646 | dev_err(rdev->dev, "failed testing IB (%d).\n", r); |
3647 | r100_ib_fini(rdev); | 3647 | r100_ib_fini(rdev); |
3648 | return r; | 3648 | return r; |
3649 | } | 3649 | } |
@@ -3799,12 +3799,12 @@ static int r100_startup(struct radeon_device *rdev) | |||
3799 | /* 1M ring buffer */ | 3799 | /* 1M ring buffer */ |
3800 | r = r100_cp_init(rdev, 1024 * 1024); | 3800 | r = r100_cp_init(rdev, 1024 * 1024); |
3801 | if (r) { | 3801 | if (r) { |
3802 | dev_err(rdev->dev, "failled initializing CP (%d).\n", r); | 3802 | dev_err(rdev->dev, "failed initializing CP (%d).\n", r); |
3803 | return r; | 3803 | return r; |
3804 | } | 3804 | } |
3805 | r = r100_ib_init(rdev); | 3805 | r = r100_ib_init(rdev); |
3806 | if (r) { | 3806 | if (r) { |
3807 | dev_err(rdev->dev, "failled initializing IB (%d).\n", r); | 3807 | dev_err(rdev->dev, "failed initializing IB (%d).\n", r); |
3808 | return r; | 3808 | return r; |
3809 | } | 3809 | } |
3810 | return 0; | 3810 | return 0; |
diff --git a/drivers/gpu/drm/radeon/r300.c b/drivers/gpu/drm/radeon/r300.c index 069efa8c8ecf..8713731fa014 100644 --- a/drivers/gpu/drm/radeon/r300.c +++ b/drivers/gpu/drm/radeon/r300.c | |||
@@ -1401,12 +1401,12 @@ static int r300_startup(struct radeon_device *rdev) | |||
1401 | /* 1M ring buffer */ | 1401 | /* 1M ring buffer */ |
1402 | r = r100_cp_init(rdev, 1024 * 1024); | 1402 | r = r100_cp_init(rdev, 1024 * 1024); |
1403 | if (r) { | 1403 | if (r) { |
1404 | dev_err(rdev->dev, "failled initializing CP (%d).\n", r); | 1404 | dev_err(rdev->dev, "failed initializing CP (%d).\n", r); |
1405 | return r; | 1405 | return r; |
1406 | } | 1406 | } |
1407 | r = r100_ib_init(rdev); | 1407 | r = r100_ib_init(rdev); |
1408 | if (r) { | 1408 | if (r) { |
1409 | dev_err(rdev->dev, "failled initializing IB (%d).\n", r); | 1409 | dev_err(rdev->dev, "failed initializing IB (%d).\n", r); |
1410 | return r; | 1410 | return r; |
1411 | } | 1411 | } |
1412 | return 0; | 1412 | return 0; |
diff --git a/drivers/gpu/drm/radeon/r420.c b/drivers/gpu/drm/radeon/r420.c index 0b59ed7c7d2c..417fab81812f 100644 --- a/drivers/gpu/drm/radeon/r420.c +++ b/drivers/gpu/drm/radeon/r420.c | |||
@@ -260,13 +260,13 @@ static int r420_startup(struct radeon_device *rdev) | |||
260 | /* 1M ring buffer */ | 260 | /* 1M ring buffer */ |
261 | r = r100_cp_init(rdev, 1024 * 1024); | 261 | r = r100_cp_init(rdev, 1024 * 1024); |
262 | if (r) { | 262 | if (r) { |
263 | dev_err(rdev->dev, "failled initializing CP (%d).\n", r); | 263 | dev_err(rdev->dev, "failed initializing CP (%d).\n", r); |
264 | return r; | 264 | return r; |
265 | } | 265 | } |
266 | r420_cp_errata_init(rdev); | 266 | r420_cp_errata_init(rdev); |
267 | r = r100_ib_init(rdev); | 267 | r = r100_ib_init(rdev); |
268 | if (r) { | 268 | if (r) { |
269 | dev_err(rdev->dev, "failled initializing IB (%d).\n", r); | 269 | dev_err(rdev->dev, "failed initializing IB (%d).\n", r); |
270 | return r; | 270 | return r; |
271 | } | 271 | } |
272 | return 0; | 272 | return 0; |
diff --git a/drivers/gpu/drm/radeon/r520.c b/drivers/gpu/drm/radeon/r520.c index 2ce80d976568..3081d07f8de5 100644 --- a/drivers/gpu/drm/radeon/r520.c +++ b/drivers/gpu/drm/radeon/r520.c | |||
@@ -193,12 +193,12 @@ static int r520_startup(struct radeon_device *rdev) | |||
193 | /* 1M ring buffer */ | 193 | /* 1M ring buffer */ |
194 | r = r100_cp_init(rdev, 1024 * 1024); | 194 | r = r100_cp_init(rdev, 1024 * 1024); |
195 | if (r) { | 195 | if (r) { |
196 | dev_err(rdev->dev, "failled initializing CP (%d).\n", r); | 196 | dev_err(rdev->dev, "failed initializing CP (%d).\n", r); |
197 | return r; | 197 | return r; |
198 | } | 198 | } |
199 | r = r100_ib_init(rdev); | 199 | r = r100_ib_init(rdev); |
200 | if (r) { | 200 | if (r) { |
201 | dev_err(rdev->dev, "failled initializing IB (%d).\n", r); | 201 | dev_err(rdev->dev, "failed initializing IB (%d).\n", r); |
202 | return r; | 202 | return r; |
203 | } | 203 | } |
204 | return 0; | 204 | return 0; |
diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c index 12fdebf9aed8..be271c42de4d 100644 --- a/drivers/gpu/drm/radeon/r600.c +++ b/drivers/gpu/drm/radeon/r600.c | |||
@@ -2464,7 +2464,7 @@ int r600_resume(struct radeon_device *rdev) | |||
2464 | 2464 | ||
2465 | r = r600_ib_test(rdev); | 2465 | r = r600_ib_test(rdev); |
2466 | if (r) { | 2466 | if (r) { |
2467 | DRM_ERROR("radeon: failled testing IB (%d).\n", r); | 2467 | DRM_ERROR("radeon: failed testing IB (%d).\n", r); |
2468 | return r; | 2468 | return r; |
2469 | } | 2469 | } |
2470 | 2470 | ||
diff --git a/drivers/gpu/drm/radeon/radeon_ring.c b/drivers/gpu/drm/radeon/radeon_ring.c index 992d99d13fc5..bbc9cd823334 100644 --- a/drivers/gpu/drm/radeon/radeon_ring.c +++ b/drivers/gpu/drm/radeon/radeon_ring.c | |||
@@ -151,7 +151,7 @@ int radeon_ib_schedule(struct radeon_device *rdev, struct radeon_ib *ib) | |||
151 | /* 64 dwords should be enough for fence too */ | 151 | /* 64 dwords should be enough for fence too */ |
152 | r = radeon_ring_lock(rdev, 64); | 152 | r = radeon_ring_lock(rdev, 64); |
153 | if (r) { | 153 | if (r) { |
154 | DRM_ERROR("radeon: scheduling IB failled (%d).\n", r); | 154 | DRM_ERROR("radeon: scheduling IB failed (%d).\n", r); |
155 | return r; | 155 | return r; |
156 | } | 156 | } |
157 | radeon_ring_ib_execute(rdev, ib); | 157 | radeon_ring_ib_execute(rdev, ib); |
diff --git a/drivers/gpu/drm/radeon/rs400.c b/drivers/gpu/drm/radeon/rs400.c index c76283d9eb3d..aa6a66eeb4ec 100644 --- a/drivers/gpu/drm/radeon/rs400.c +++ b/drivers/gpu/drm/radeon/rs400.c | |||
@@ -412,12 +412,12 @@ static int rs400_startup(struct radeon_device *rdev) | |||
412 | /* 1M ring buffer */ | 412 | /* 1M ring buffer */ |
413 | r = r100_cp_init(rdev, 1024 * 1024); | 413 | r = r100_cp_init(rdev, 1024 * 1024); |
414 | if (r) { | 414 | if (r) { |
415 | dev_err(rdev->dev, "failled initializing CP (%d).\n", r); | 415 | dev_err(rdev->dev, "failed initializing CP (%d).\n", r); |
416 | return r; | 416 | return r; |
417 | } | 417 | } |
418 | r = r100_ib_init(rdev); | 418 | r = r100_ib_init(rdev); |
419 | if (r) { | 419 | if (r) { |
420 | dev_err(rdev->dev, "failled initializing IB (%d).\n", r); | 420 | dev_err(rdev->dev, "failed initializing IB (%d).\n", r); |
421 | return r; | 421 | return r; |
422 | } | 422 | } |
423 | return 0; | 423 | return 0; |
diff --git a/drivers/gpu/drm/radeon/rs600.c b/drivers/gpu/drm/radeon/rs600.c index 8af4679db23e..19763f5df5e1 100644 --- a/drivers/gpu/drm/radeon/rs600.c +++ b/drivers/gpu/drm/radeon/rs600.c | |||
@@ -865,12 +865,12 @@ static int rs600_startup(struct radeon_device *rdev) | |||
865 | /* 1M ring buffer */ | 865 | /* 1M ring buffer */ |
866 | r = r100_cp_init(rdev, 1024 * 1024); | 866 | r = r100_cp_init(rdev, 1024 * 1024); |
867 | if (r) { | 867 | if (r) { |
868 | dev_err(rdev->dev, "failled initializing CP (%d).\n", r); | 868 | dev_err(rdev->dev, "failed initializing CP (%d).\n", r); |
869 | return r; | 869 | return r; |
870 | } | 870 | } |
871 | r = r100_ib_init(rdev); | 871 | r = r100_ib_init(rdev); |
872 | if (r) { | 872 | if (r) { |
873 | dev_err(rdev->dev, "failled initializing IB (%d).\n", r); | 873 | dev_err(rdev->dev, "failed initializing IB (%d).\n", r); |
874 | return r; | 874 | return r; |
875 | } | 875 | } |
876 | 876 | ||
diff --git a/drivers/gpu/drm/radeon/rs690.c b/drivers/gpu/drm/radeon/rs690.c index 66c949b7c18c..a9049ed1a519 100644 --- a/drivers/gpu/drm/radeon/rs690.c +++ b/drivers/gpu/drm/radeon/rs690.c | |||
@@ -627,12 +627,12 @@ static int rs690_startup(struct radeon_device *rdev) | |||
627 | /* 1M ring buffer */ | 627 | /* 1M ring buffer */ |
628 | r = r100_cp_init(rdev, 1024 * 1024); | 628 | r = r100_cp_init(rdev, 1024 * 1024); |
629 | if (r) { | 629 | if (r) { |
630 | dev_err(rdev->dev, "failled initializing CP (%d).\n", r); | 630 | dev_err(rdev->dev, "failed initializing CP (%d).\n", r); |
631 | return r; | 631 | return r; |
632 | } | 632 | } |
633 | r = r100_ib_init(rdev); | 633 | r = r100_ib_init(rdev); |
634 | if (r) { | 634 | if (r) { |
635 | dev_err(rdev->dev, "failled initializing IB (%d).\n", r); | 635 | dev_err(rdev->dev, "failed initializing IB (%d).\n", r); |
636 | return r; | 636 | return r; |
637 | } | 637 | } |
638 | 638 | ||
diff --git a/drivers/gpu/drm/radeon/rv515.c b/drivers/gpu/drm/radeon/rv515.c index 64b57af93714..6613ee9ecca3 100644 --- a/drivers/gpu/drm/radeon/rv515.c +++ b/drivers/gpu/drm/radeon/rv515.c | |||
@@ -398,12 +398,12 @@ static int rv515_startup(struct radeon_device *rdev) | |||
398 | /* 1M ring buffer */ | 398 | /* 1M ring buffer */ |
399 | r = r100_cp_init(rdev, 1024 * 1024); | 399 | r = r100_cp_init(rdev, 1024 * 1024); |
400 | if (r) { | 400 | if (r) { |
401 | dev_err(rdev->dev, "failled initializing CP (%d).\n", r); | 401 | dev_err(rdev->dev, "failed initializing CP (%d).\n", r); |
402 | return r; | 402 | return r; |
403 | } | 403 | } |
404 | r = r100_ib_init(rdev); | 404 | r = r100_ib_init(rdev); |
405 | if (r) { | 405 | if (r) { |
406 | dev_err(rdev->dev, "failled initializing IB (%d).\n", r); | 406 | dev_err(rdev->dev, "failed initializing IB (%d).\n", r); |
407 | return r; | 407 | return r; |
408 | } | 408 | } |
409 | return 0; | 409 | return 0; |
diff --git a/drivers/gpu/drm/radeon/rv770.c b/drivers/gpu/drm/radeon/rv770.c index 4cc7b717fedd..b974ac7df8df 100644 --- a/drivers/gpu/drm/radeon/rv770.c +++ b/drivers/gpu/drm/radeon/rv770.c | |||
@@ -1209,7 +1209,7 @@ int rv770_resume(struct radeon_device *rdev) | |||
1209 | 1209 | ||
1210 | r = r600_ib_test(rdev); | 1210 | r = r600_ib_test(rdev); |
1211 | if (r) { | 1211 | if (r) { |
1212 | DRM_ERROR("radeon: failled testing IB (%d).\n", r); | 1212 | DRM_ERROR("radeon: failed testing IB (%d).\n", r); |
1213 | return r; | 1213 | return r; |
1214 | } | 1214 | } |
1215 | 1215 | ||
diff --git a/drivers/isdn/mISDN/hwchannel.c b/drivers/isdn/mISDN/hwchannel.c index 199f374cf9da..f6e108d0125f 100644 --- a/drivers/isdn/mISDN/hwchannel.c +++ b/drivers/isdn/mISDN/hwchannel.c | |||
@@ -206,7 +206,7 @@ recv_Bchannel(struct bchannel *bch, unsigned int id) | |||
206 | hh->id = id; | 206 | hh->id = id; |
207 | if (bch->rcount >= 64) { | 207 | if (bch->rcount >= 64) { |
208 | printk(KERN_WARNING "B-channel %p receive queue overflow, " | 208 | printk(KERN_WARNING "B-channel %p receive queue overflow, " |
209 | "fushing!\n", bch); | 209 | "flushing!\n", bch); |
210 | skb_queue_purge(&bch->rqueue); | 210 | skb_queue_purge(&bch->rqueue); |
211 | bch->rcount = 0; | 211 | bch->rcount = 0; |
212 | return; | 212 | return; |
@@ -231,7 +231,7 @@ recv_Bchannel_skb(struct bchannel *bch, struct sk_buff *skb) | |||
231 | { | 231 | { |
232 | if (bch->rcount >= 64) { | 232 | if (bch->rcount >= 64) { |
233 | printk(KERN_WARNING "B-channel %p receive queue overflow, " | 233 | printk(KERN_WARNING "B-channel %p receive queue overflow, " |
234 | "fushing!\n", bch); | 234 | "flushing!\n", bch); |
235 | skb_queue_purge(&bch->rqueue); | 235 | skb_queue_purge(&bch->rqueue); |
236 | bch->rcount = 0; | 236 | bch->rcount = 0; |
237 | } | 237 | } |
@@ -279,7 +279,7 @@ confirm_Bsend(struct bchannel *bch) | |||
279 | 279 | ||
280 | if (bch->rcount >= 64) { | 280 | if (bch->rcount >= 64) { |
281 | printk(KERN_WARNING "B-channel %p receive queue overflow, " | 281 | printk(KERN_WARNING "B-channel %p receive queue overflow, " |
282 | "fushing!\n", bch); | 282 | "flushing!\n", bch); |
283 | skb_queue_purge(&bch->rqueue); | 283 | skb_queue_purge(&bch->rqueue); |
284 | bch->rcount = 0; | 284 | bch->rcount = 0; |
285 | } | 285 | } |
diff --git a/drivers/message/i2o/i2o_config.c b/drivers/message/i2o/i2o_config.c index 7d3cc575c361..098de2b35784 100644 --- a/drivers/message/i2o/i2o_config.c +++ b/drivers/message/i2o/i2o_config.c | |||
@@ -1044,8 +1044,7 @@ static long i2o_cfg_ioctl(struct file *fp, unsigned int cmd, unsigned long arg) | |||
1044 | 1044 | ||
1045 | static int cfg_open(struct inode *inode, struct file *file) | 1045 | static int cfg_open(struct inode *inode, struct file *file) |
1046 | { | 1046 | { |
1047 | struct i2o_cfg_info *tmp = | 1047 | struct i2o_cfg_info *tmp = kmalloc(sizeof(struct i2o_cfg_info), |
1048 | (struct i2o_cfg_info *)kmalloc(sizeof(struct i2o_cfg_info), | ||
1049 | GFP_KERNEL); | 1048 | GFP_KERNEL); |
1050 | unsigned long flags; | 1049 | unsigned long flags; |
1051 | 1050 | ||
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index ef932ba55a0b..5ae1d9ee2cf1 100644 --- a/drivers/mtd/nand/mxc_nand.c +++ b/drivers/mtd/nand/mxc_nand.c | |||
@@ -722,9 +722,8 @@ static void mxc_do_addr_cycle(struct mtd_info *mtd, int column, int page_addr) | |||
722 | /* | 722 | /* |
723 | * MXC NANDFC can only perform full page+spare or | 723 | * MXC NANDFC can only perform full page+spare or |
724 | * spare-only read/write. When the upper layers | 724 | * spare-only read/write. When the upper layers |
725 | * layers perform a read/write buf operation, | 725 | * perform a read/write buf operation, the saved column |
726 | * we will used the saved column address to index into | 726 | * address is used to index into the full page. |
727 | * the full page. | ||
728 | */ | 727 | */ |
729 | host->send_addr(host, 0, page_addr == -1); | 728 | host->send_addr(host, 0, page_addr == -1); |
730 | if (mtd->writesize > 512) | 729 | if (mtd->writesize > 512) |
diff --git a/drivers/net/atl1c/atl1c.h b/drivers/net/atl1c/atl1c.h index 9ab58097fa2e..7cb375e0e29c 100644 --- a/drivers/net/atl1c/atl1c.h +++ b/drivers/net/atl1c/atl1c.h | |||
@@ -265,7 +265,7 @@ struct atl1c_recv_ret_status { | |||
265 | __le32 word3; | 265 | __le32 word3; |
266 | }; | 266 | }; |
267 | 267 | ||
268 | /* RFD desciptor */ | 268 | /* RFD descriptor */ |
269 | struct atl1c_rx_free_desc { | 269 | struct atl1c_rx_free_desc { |
270 | __le64 buffer_addr; | 270 | __le64 buffer_addr; |
271 | }; | 271 | }; |
@@ -531,7 +531,7 @@ struct atl1c_rfd_ring { | |||
531 | struct atl1c_buffer *buffer_info; | 531 | struct atl1c_buffer *buffer_info; |
532 | }; | 532 | }; |
533 | 533 | ||
534 | /* receive return desciptor (rrd) ring */ | 534 | /* receive return descriptor (rrd) ring */ |
535 | struct atl1c_rrd_ring { | 535 | struct atl1c_rrd_ring { |
536 | void *desc; /* descriptor ring virtual address */ | 536 | void *desc; /* descriptor ring virtual address */ |
537 | dma_addr_t dma; /* descriptor ring physical address */ | 537 | dma_addr_t dma; /* descriptor ring physical address */ |
diff --git a/drivers/net/qla3xxx.c b/drivers/net/qla3xxx.c index 2d21c60085bc..348b4f1367c9 100644 --- a/drivers/net/qla3xxx.c +++ b/drivers/net/qla3xxx.c | |||
@@ -2460,7 +2460,7 @@ map_error: | |||
2460 | * The 3032 supports sglists by using the 3 addr/len pairs (ALP) | 2460 | * The 3032 supports sglists by using the 3 addr/len pairs (ALP) |
2461 | * in the IOCB plus a chain of outbound address lists (OAL) that | 2461 | * in the IOCB plus a chain of outbound address lists (OAL) that |
2462 | * each contain 5 ALPs. The last ALP of the IOCB (3rd) or OAL (5th) | 2462 | * each contain 5 ALPs. The last ALP of the IOCB (3rd) or OAL (5th) |
2463 | * will used to point to an OAL when more ALP entries are required. | 2463 | * will be used to point to an OAL when more ALP entries are required. |
2464 | * The IOCB is always the top of the chain followed by one or more | 2464 | * The IOCB is always the top of the chain followed by one or more |
2465 | * OALs (when necessary). | 2465 | * OALs (when necessary). |
2466 | */ | 2466 | */ |
diff --git a/drivers/net/sungem.h b/drivers/net/sungem.h index ede017872367..d225077964e2 100644 --- a/drivers/net/sungem.h +++ b/drivers/net/sungem.h | |||
@@ -843,7 +843,7 @@ struct gem_txd { | |||
843 | 843 | ||
844 | /* GEM requires that RX descriptors are provided four at a time, | 844 | /* GEM requires that RX descriptors are provided four at a time, |
845 | * aligned. Also, the RX ring may not wrap around. This means that | 845 | * aligned. Also, the RX ring may not wrap around. This means that |
846 | * there will be at least 4 unused desciptor entries in the middle | 846 | * there will be at least 4 unused descriptor entries in the middle |
847 | * of the RX ring at all times. | 847 | * of the RX ring at all times. |
848 | * | 848 | * |
849 | * Similar to HME, GEM assumes that it can write garbage bytes before | 849 | * Similar to HME, GEM assumes that it can write garbage bytes before |
diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index 38b34a73866a..ad3d099bf5c1 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c | |||
@@ -39,7 +39,6 @@ | |||
39 | #include <linux/slab.h> | 39 | #include <linux/slab.h> |
40 | #include <linux/input.h> | 40 | #include <linux/input.h> |
41 | #include <linux/input/sparse-keymap.h> | 41 | #include <linux/input/sparse-keymap.h> |
42 | #include <linux/dmi.h> | ||
43 | 42 | ||
44 | #include <acpi/acpi_drivers.h> | 43 | #include <acpi/acpi_drivers.h> |
45 | 44 | ||
diff --git a/drivers/scsi/aic7xxx/aic79xx.h b/drivers/scsi/aic7xxx/aic79xx.h index be5558ab84ea..95ee50385188 100644 --- a/drivers/scsi/aic7xxx/aic79xx.h +++ b/drivers/scsi/aic7xxx/aic79xx.h | |||
@@ -672,7 +672,7 @@ struct scb_data { | |||
672 | /************************ Target Mode Definitions *****************************/ | 672 | /************************ Target Mode Definitions *****************************/ |
673 | 673 | ||
674 | /* | 674 | /* |
675 | * Connection desciptor for select-in requests in target mode. | 675 | * Connection descriptor for select-in requests in target mode. |
676 | */ | 676 | */ |
677 | struct target_cmd { | 677 | struct target_cmd { |
678 | uint8_t scsiid; /* Our ID and the initiator's ID */ | 678 | uint8_t scsiid; /* Our ID and the initiator's ID */ |
diff --git a/drivers/scsi/aic7xxx/aic7xxx.h b/drivers/scsi/aic7xxx/aic7xxx.h index e4e651cca3e4..17444bc18bca 100644 --- a/drivers/scsi/aic7xxx/aic7xxx.h +++ b/drivers/scsi/aic7xxx/aic7xxx.h | |||
@@ -618,7 +618,7 @@ struct scb_data { | |||
618 | /************************ Target Mode Definitions *****************************/ | 618 | /************************ Target Mode Definitions *****************************/ |
619 | 619 | ||
620 | /* | 620 | /* |
621 | * Connection desciptor for select-in requests in target mode. | 621 | * Connection descriptor for select-in requests in target mode. |
622 | */ | 622 | */ |
623 | struct target_cmd { | 623 | struct target_cmd { |
624 | uint8_t scsiid; /* Our ID and the initiator's ID */ | 624 | uint8_t scsiid; /* Our ID and the initiator's ID */ |
diff --git a/drivers/scsi/aic7xxx/aic7xxx_core.c b/drivers/scsi/aic7xxx/aic7xxx_core.c index 3f5a542a7793..e021b4812d58 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_core.c +++ b/drivers/scsi/aic7xxx/aic7xxx_core.c | |||
@@ -4780,7 +4780,7 @@ ahc_init_scbdata(struct ahc_softc *ahc) | |||
4780 | SLIST_INIT(&scb_data->sg_maps); | 4780 | SLIST_INIT(&scb_data->sg_maps); |
4781 | 4781 | ||
4782 | /* Allocate SCB resources */ | 4782 | /* Allocate SCB resources */ |
4783 | scb_data->scbarray = (struct scb *)kmalloc(sizeof(struct scb) * AHC_SCB_MAX_ALLOC, GFP_ATOMIC); | 4783 | scb_data->scbarray = kmalloc(sizeof(struct scb) * AHC_SCB_MAX_ALLOC, GFP_ATOMIC); |
4784 | if (scb_data->scbarray == NULL) | 4784 | if (scb_data->scbarray == NULL) |
4785 | return (ENOMEM); | 4785 | return (ENOMEM); |
4786 | memset(scb_data->scbarray, 0, sizeof(struct scb) * AHC_SCB_MAX_ALLOC); | 4786 | memset(scb_data->scbarray, 0, sizeof(struct scb) * AHC_SCB_MAX_ALLOC); |
diff --git a/drivers/scsi/megaraid.c b/drivers/scsi/megaraid.c index 9aa048525eb2..c212694a9714 100644 --- a/drivers/scsi/megaraid.c +++ b/drivers/scsi/megaraid.c | |||
@@ -1412,7 +1412,7 @@ megaraid_isr_memmapped(int irq, void *devp) | |||
1412 | * @nstatus - number of completed commands | 1412 | * @nstatus - number of completed commands |
1413 | * @status - status of the last command completed | 1413 | * @status - status of the last command completed |
1414 | * | 1414 | * |
1415 | * Complete the comamnds and call the scsi mid-layer callback hooks. | 1415 | * Complete the commands and call the scsi mid-layer callback hooks. |
1416 | */ | 1416 | */ |
1417 | static void | 1417 | static void |
1418 | mega_cmd_done(adapter_t *adapter, u8 completed[], int nstatus, int status) | 1418 | mega_cmd_done(adapter_t *adapter, u8 completed[], int nstatus, int status) |
@@ -4296,7 +4296,7 @@ mega_support_cluster(adapter_t *adapter) | |||
4296 | * @adapter - pointer to our soft state | 4296 | * @adapter - pointer to our soft state |
4297 | * @dma_handle - DMA address of the buffer | 4297 | * @dma_handle - DMA address of the buffer |
4298 | * | 4298 | * |
4299 | * Issue internal comamnds while interrupts are available. | 4299 | * Issue internal commands while interrupts are available. |
4300 | * We only issue direct mailbox commands from within the driver. ioctl() | 4300 | * We only issue direct mailbox commands from within the driver. ioctl() |
4301 | * interface using these routines can issue passthru commands. | 4301 | * interface using these routines can issue passthru commands. |
4302 | */ | 4302 | */ |
diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c index f875e818905f..bbd10c81fd9c 100644 --- a/drivers/scsi/megaraid/megaraid_sas_base.c +++ b/drivers/scsi/megaraid/megaraid_sas_base.c | |||
@@ -890,7 +890,7 @@ megasas_issue_blocked_cmd(struct megasas_instance *instance, | |||
890 | * @instance: Adapter soft state | 890 | * @instance: Adapter soft state |
891 | * @cmd_to_abort: Previously issued cmd to be aborted | 891 | * @cmd_to_abort: Previously issued cmd to be aborted |
892 | * | 892 | * |
893 | * MFI firmware can abort previously issued AEN comamnd (automatic event | 893 | * MFI firmware can abort previously issued AEN command (automatic event |
894 | * notification). The megasas_issue_blocked_abort_cmd() issues such abort | 894 | * notification). The megasas_issue_blocked_abort_cmd() issues such abort |
895 | * cmd and waits for return status. | 895 | * cmd and waits for return status. |
896 | * Max wait time is MEGASAS_INTERNAL_CMD_WAIT_TIME secs | 896 | * Max wait time is MEGASAS_INTERNAL_CMD_WAIT_TIME secs |
diff --git a/drivers/scsi/osst.c b/drivers/scsi/osst.c index 54de1d1af1a7..521e2182d45b 100644 --- a/drivers/scsi/osst.c +++ b/drivers/scsi/osst.c | |||
@@ -1484,7 +1484,7 @@ static int osst_read_back_buffer_and_rewrite(struct osst_tape * STp, struct osst | |||
1484 | int dbg = debugging; | 1484 | int dbg = debugging; |
1485 | #endif | 1485 | #endif |
1486 | 1486 | ||
1487 | if ((buffer = (unsigned char *)vmalloc((nframes + 1) * OS_DATA_SIZE)) == NULL) | 1487 | if ((buffer = vmalloc((nframes + 1) * OS_DATA_SIZE)) == NULL) |
1488 | return (-EIO); | 1488 | return (-EIO); |
1489 | 1489 | ||
1490 | printk(KERN_INFO "%s:I: Reading back %d frames from drive buffer%s\n", | 1490 | printk(KERN_INFO "%s:I: Reading back %d frames from drive buffer%s\n", |
@@ -2296,7 +2296,7 @@ static int osst_write_header(struct osst_tape * STp, struct osst_request ** aSRp | |||
2296 | if (STp->raw) return 0; | 2296 | if (STp->raw) return 0; |
2297 | 2297 | ||
2298 | if (STp->header_cache == NULL) { | 2298 | if (STp->header_cache == NULL) { |
2299 | if ((STp->header_cache = (os_header_t *)vmalloc(sizeof(os_header_t))) == NULL) { | 2299 | if ((STp->header_cache = vmalloc(sizeof(os_header_t))) == NULL) { |
2300 | printk(KERN_ERR "%s:E: Failed to allocate header cache\n", name); | 2300 | printk(KERN_ERR "%s:E: Failed to allocate header cache\n", name); |
2301 | return (-ENOMEM); | 2301 | return (-ENOMEM); |
2302 | } | 2302 | } |
@@ -2484,7 +2484,7 @@ static int __osst_analyze_headers(struct osst_tape * STp, struct osst_request ** | |||
2484 | name, ppos, update_frame_cntr); | 2484 | name, ppos, update_frame_cntr); |
2485 | #endif | 2485 | #endif |
2486 | if (STp->header_cache == NULL) { | 2486 | if (STp->header_cache == NULL) { |
2487 | if ((STp->header_cache = (os_header_t *)vmalloc(sizeof(os_header_t))) == NULL) { | 2487 | if ((STp->header_cache = vmalloc(sizeof(os_header_t))) == NULL) { |
2488 | printk(KERN_ERR "%s:E: Failed to allocate header cache\n", name); | 2488 | printk(KERN_ERR "%s:E: Failed to allocate header cache\n", name); |
2489 | return 0; | 2489 | return 0; |
2490 | } | 2490 | } |
@@ -5851,9 +5851,7 @@ static int osst_probe(struct device *dev) | |||
5851 | /* if this is the first attach, build the infrastructure */ | 5851 | /* if this is the first attach, build the infrastructure */ |
5852 | write_lock(&os_scsi_tapes_lock); | 5852 | write_lock(&os_scsi_tapes_lock); |
5853 | if (os_scsi_tapes == NULL) { | 5853 | if (os_scsi_tapes == NULL) { |
5854 | os_scsi_tapes = | 5854 | os_scsi_tapes = kmalloc(osst_max_dev * sizeof(struct osst_tape *), GFP_ATOMIC); |
5855 | (struct osst_tape **)kmalloc(osst_max_dev * sizeof(struct osst_tape *), | ||
5856 | GFP_ATOMIC); | ||
5857 | if (os_scsi_tapes == NULL) { | 5855 | if (os_scsi_tapes == NULL) { |
5858 | write_unlock(&os_scsi_tapes_lock); | 5856 | write_unlock(&os_scsi_tapes_lock); |
5859 | printk(KERN_ERR "osst :E: Unable to allocate array for OnStream SCSI tapes.\n"); | 5857 | printk(KERN_ERR "osst :E: Unable to allocate array for OnStream SCSI tapes.\n"); |
diff --git a/drivers/scsi/qla4xxx/ql4_isr.c b/drivers/scsi/qla4xxx/ql4_isr.c index 6ffbe9727dff..03e028e6e809 100644 --- a/drivers/scsi/qla4xxx/ql4_isr.c +++ b/drivers/scsi/qla4xxx/ql4_isr.c | |||
@@ -1027,7 +1027,7 @@ void qla4xxx_process_aen(struct scsi_qla_host * ha, uint8_t process_aen) | |||
1027 | ((ddb_entry->default_time2wait + | 1027 | ((ddb_entry->default_time2wait + |
1028 | 4) * HZ); | 1028 | 4) * HZ); |
1029 | 1029 | ||
1030 | DEBUG2(printk("scsi%ld: ddb [%d] initate" | 1030 | DEBUG2(printk("scsi%ld: ddb [%d] initiate" |
1031 | " RELOGIN after %d seconds\n", | 1031 | " RELOGIN after %d seconds\n", |
1032 | ha->host_no, | 1032 | ha->host_no, |
1033 | ddb_entry->fw_ddb_index, | 1033 | ddb_entry->fw_ddb_index, |
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index 3fc1d256636f..967836ef5ab2 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c | |||
@@ -812,7 +812,7 @@ static void qla4xxx_timer(struct scsi_qla_host *ha) | |||
812 | ); | 812 | ); |
813 | start_dpc++; | 813 | start_dpc++; |
814 | DEBUG(printk("scsi%ld:%d:%d: ddb [%d] " | 814 | DEBUG(printk("scsi%ld:%d:%d: ddb [%d] " |
815 | "initate relogin after" | 815 | "initiate relogin after" |
816 | " %d seconds\n", | 816 | " %d seconds\n", |
817 | ha->host_no, ddb_entry->bus, | 817 | ha->host_no, ddb_entry->bus, |
818 | ddb_entry->target, | 818 | ddb_entry->target, |
diff --git a/drivers/target/target_core_hba.c b/drivers/target/target_core_hba.c index 73f7d6d81b4c..6ec51cbc018e 100644 --- a/drivers/target/target_core_hba.c +++ b/drivers/target/target_core_hba.c | |||
@@ -37,7 +37,6 @@ | |||
37 | 37 | ||
38 | #include <target/target_core_base.h> | 38 | #include <target/target_core_base.h> |
39 | #include <target/target_core_device.h> | 39 | #include <target/target_core_device.h> |
40 | #include <target/target_core_device.h> | ||
41 | #include <target/target_core_tpg.h> | 40 | #include <target/target_core_tpg.h> |
42 | #include <target/target_core_transport.h> | 41 | #include <target/target_core_transport.h> |
43 | 42 | ||
diff --git a/drivers/tty/hvc/hvcs.c b/drivers/tty/hvc/hvcs.c index 7e315b7f8700..bef238f9ffd7 100644 --- a/drivers/tty/hvc/hvcs.c +++ b/drivers/tty/hvc/hvcs.c | |||
@@ -292,7 +292,7 @@ struct hvcs_struct { | |||
292 | /* | 292 | /* |
293 | * Any variable below the kref is valid before a tty is connected and | 293 | * Any variable below the kref is valid before a tty is connected and |
294 | * stays valid after the tty is disconnected. These shouldn't be | 294 | * stays valid after the tty is disconnected. These shouldn't be |
295 | * whacked until the koject refcount reaches zero though some entries | 295 | * whacked until the kobject refcount reaches zero though some entries |
296 | * may be changed via sysfs initiatives. | 296 | * may be changed via sysfs initiatives. |
297 | */ | 297 | */ |
298 | struct kref kref; /* ref count & hvcs_struct lifetime */ | 298 | struct kref kref; /* ref count & hvcs_struct lifetime */ |
diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c index a9ad7f33526d..26403b8e4b9b 100644 --- a/drivers/tty/serial/pch_uart.c +++ b/drivers/tty/serial/pch_uart.c | |||
@@ -15,7 +15,6 @@ | |||
15 | *Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. | 15 | *Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. |
16 | */ | 16 | */ |
17 | #include <linux/serial_reg.h> | 17 | #include <linux/serial_reg.h> |
18 | #include <linux/pci.h> | ||
19 | #include <linux/module.h> | 18 | #include <linux/module.h> |
20 | #include <linux/pci.h> | 19 | #include <linux/pci.h> |
21 | #include <linux/serial_core.h> | 20 | #include <linux/serial_core.h> |
diff --git a/drivers/watchdog/sbc_epx_c3.c b/drivers/watchdog/sbc_epx_c3.c index 28f1214457bd..3066a5127ca8 100644 --- a/drivers/watchdog/sbc_epx_c3.c +++ b/drivers/watchdog/sbc_epx_c3.c | |||
@@ -220,7 +220,7 @@ module_exit(watchdog_exit); | |||
220 | MODULE_AUTHOR("Calin A. Culianu <calin@ajvar.org>"); | 220 | MODULE_AUTHOR("Calin A. Culianu <calin@ajvar.org>"); |
221 | MODULE_DESCRIPTION("Hardware Watchdog Device for Winsystems EPX-C3 SBC. " | 221 | MODULE_DESCRIPTION("Hardware Watchdog Device for Winsystems EPX-C3 SBC. " |
222 | "Note that there is no way to probe for this device -- " | 222 | "Note that there is no way to probe for this device -- " |
223 | "so only use it if you are *sure* you are runnning on this specific " | 223 | "so only use it if you are *sure* you are running on this specific " |
224 | "SBC system from Winsystems! It writes to IO ports 0x1ee and 0x1ef!"); | 224 | "SBC system from Winsystems! It writes to IO ports 0x1ee and 0x1ef!"); |
225 | MODULE_LICENSE("GPL"); | 225 | MODULE_LICENSE("GPL"); |
226 | MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); | 226 | MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); |