diff options
Diffstat (limited to 'drivers')
38 files changed, 50 insertions, 60 deletions
diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c index 1f3c1a7d132a..38a2d0631882 100644 --- a/drivers/block/nvme.c +++ b/drivers/block/nvme.c | |||
@@ -39,7 +39,6 @@ | |||
39 | #include <linux/sched.h> | 39 | #include <linux/sched.h> |
40 | #include <linux/slab.h> | 40 | #include <linux/slab.h> |
41 | #include <linux/types.h> | 41 | #include <linux/types.h> |
42 | #include <linux/version.h> | ||
43 | 42 | ||
44 | #include <asm-generic/io-64-nonatomic-lo-hi.h> | 43 | #include <asm-generic/io-64-nonatomic-lo-hi.h> |
45 | 44 | ||
diff --git a/drivers/char/nvram.c b/drivers/char/nvram.c index da3cfee782dc..eaade8a1ecd7 100644 --- a/drivers/char/nvram.c +++ b/drivers/char/nvram.c | |||
@@ -94,7 +94,7 @@ | |||
94 | /* Note that *all* calls to CMOS_READ and CMOS_WRITE must be done with | 94 | /* Note that *all* calls to CMOS_READ and CMOS_WRITE must be done with |
95 | * rtc_lock held. Due to the index-port/data-port design of the RTC, we | 95 | * rtc_lock held. Due to the index-port/data-port design of the RTC, we |
96 | * don't want two different things trying to get to it at once. (e.g. the | 96 | * don't want two different things trying to get to it at once. (e.g. the |
97 | * periodic 11 min sync from time.c vs. this driver.) | 97 | * periodic 11 min sync from kernel/time/ntp.c vs. this driver.) |
98 | */ | 98 | */ |
99 | 99 | ||
100 | #include <linux/types.h> | 100 | #include <linux/types.h> |
diff --git a/drivers/char/rtc.c b/drivers/char/rtc.c index ccd124ab7ca7..872e09a02d23 100644 --- a/drivers/char/rtc.c +++ b/drivers/char/rtc.c | |||
@@ -57,8 +57,8 @@ | |||
57 | * Note that *all* calls to CMOS_READ and CMOS_WRITE are done with | 57 | * Note that *all* calls to CMOS_READ and CMOS_WRITE are done with |
58 | * interrupts disabled. Due to the index-port/data-port (0x70/0x71) | 58 | * interrupts disabled. Due to the index-port/data-port (0x70/0x71) |
59 | * design of the RTC, we don't want two different things trying to | 59 | * design of the RTC, we don't want two different things trying to |
60 | * get to it at once. (e.g. the periodic 11 min sync from time.c vs. | 60 | * get to it at once. (e.g. the periodic 11 min sync from |
61 | * this driver.) | 61 | * kernel/time/ntp.c vs. this driver.) |
62 | */ | 62 | */ |
63 | 63 | ||
64 | #include <linux/interrupt.h> | 64 | #include <linux/interrupt.h> |
diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c index a1748621111b..70fac9abb0e2 100644 --- a/drivers/char/tpm/tpm_tis.c +++ b/drivers/char/tpm/tpm_tis.c | |||
@@ -76,7 +76,7 @@ enum tis_defaults { | |||
76 | #define TPM_RID(l) (0x0F04 | ((l) << 12)) | 76 | #define TPM_RID(l) (0x0F04 | ((l) << 12)) |
77 | 77 | ||
78 | static LIST_HEAD(tis_chips); | 78 | static LIST_HEAD(tis_chips); |
79 | static DEFINE_SPINLOCK(tis_lock); | 79 | static DEFINE_MUTEX(tis_lock); |
80 | 80 | ||
81 | #if defined(CONFIG_PNP) && defined(CONFIG_ACPI) | 81 | #if defined(CONFIG_PNP) && defined(CONFIG_ACPI) |
82 | static int is_itpm(struct pnp_dev *dev) | 82 | static int is_itpm(struct pnp_dev *dev) |
@@ -689,9 +689,9 @@ static int tpm_tis_init(struct device *dev, resource_size_t start, | |||
689 | } | 689 | } |
690 | 690 | ||
691 | INIT_LIST_HEAD(&chip->vendor.list); | 691 | INIT_LIST_HEAD(&chip->vendor.list); |
692 | spin_lock(&tis_lock); | 692 | mutex_lock(&tis_lock); |
693 | list_add(&chip->vendor.list, &tis_chips); | 693 | list_add(&chip->vendor.list, &tis_chips); |
694 | spin_unlock(&tis_lock); | 694 | mutex_unlock(&tis_lock); |
695 | 695 | ||
696 | 696 | ||
697 | return 0; | 697 | return 0; |
@@ -855,7 +855,7 @@ static void __exit cleanup_tis(void) | |||
855 | { | 855 | { |
856 | struct tpm_vendor_specific *i, *j; | 856 | struct tpm_vendor_specific *i, *j; |
857 | struct tpm_chip *chip; | 857 | struct tpm_chip *chip; |
858 | spin_lock(&tis_lock); | 858 | mutex_lock(&tis_lock); |
859 | list_for_each_entry_safe(i, j, &tis_chips, list) { | 859 | list_for_each_entry_safe(i, j, &tis_chips, list) { |
860 | chip = to_tpm_chip(i); | 860 | chip = to_tpm_chip(i); |
861 | tpm_remove_hardware(chip->dev); | 861 | tpm_remove_hardware(chip->dev); |
@@ -871,7 +871,7 @@ static void __exit cleanup_tis(void) | |||
871 | iounmap(i->iobase); | 871 | iounmap(i->iobase); |
872 | list_del(&i->list); | 872 | list_del(&i->list); |
873 | } | 873 | } |
874 | spin_unlock(&tis_lock); | 874 | mutex_unlock(&tis_lock); |
875 | #ifdef CONFIG_PNP | 875 | #ifdef CONFIG_PNP |
876 | if (!force) { | 876 | if (!force) { |
877 | pnp_unregister_driver(&tis_pnp_driver); | 877 | pnp_unregister_driver(&tis_pnp_driver); |
diff --git a/drivers/dma/iop-adma.c b/drivers/dma/iop-adma.c index 04be90b645b8..faf88b7e1e71 100644 --- a/drivers/dma/iop-adma.c +++ b/drivers/dma/iop-adma.c | |||
@@ -1482,7 +1482,7 @@ static int __devinit iop_adma_probe(struct platform_device *pdev) | |||
1482 | goto err_free_adev; | 1482 | goto err_free_adev; |
1483 | } | 1483 | } |
1484 | 1484 | ||
1485 | dev_dbg(&pdev->dev, "%s: allocted descriptor pool virt %p phys %p\n", | 1485 | dev_dbg(&pdev->dev, "%s: allocated descriptor pool virt %p phys %p\n", |
1486 | __func__, adev->dma_desc_pool_virt, | 1486 | __func__, adev->dma_desc_pool_virt, |
1487 | (void *) adev->dma_desc_pool); | 1487 | (void *) adev->dma_desc_pool); |
1488 | 1488 | ||
diff --git a/drivers/gpu/drm/gma500/psb_intel_lvds.c b/drivers/gpu/drm/gma500/psb_intel_lvds.c index a25e4ca5e91c..0a437586d8cc 100644 --- a/drivers/gpu/drm/gma500/psb_intel_lvds.c +++ b/drivers/gpu/drm/gma500/psb_intel_lvds.c | |||
@@ -713,7 +713,6 @@ void psb_intel_lvds_init(struct drm_device *dev, | |||
713 | 713 | ||
714 | psb_intel_encoder = | 714 | psb_intel_encoder = |
715 | kzalloc(sizeof(struct psb_intel_encoder), GFP_KERNEL); | 715 | kzalloc(sizeof(struct psb_intel_encoder), GFP_KERNEL); |
716 | |||
717 | if (!psb_intel_encoder) { | 716 | if (!psb_intel_encoder) { |
718 | dev_err(dev->dev, "psb_intel_encoder allocation error\n"); | 717 | dev_err(dev->dev, "psb_intel_encoder allocation error\n"); |
719 | return; | 718 | return; |
@@ -721,10 +720,9 @@ void psb_intel_lvds_init(struct drm_device *dev, | |||
721 | 720 | ||
722 | psb_intel_connector = | 721 | psb_intel_connector = |
723 | kzalloc(sizeof(struct psb_intel_connector), GFP_KERNEL); | 722 | kzalloc(sizeof(struct psb_intel_connector), GFP_KERNEL); |
724 | |||
725 | if (!psb_intel_connector) { | 723 | if (!psb_intel_connector) { |
726 | kfree(psb_intel_encoder); | ||
727 | dev_err(dev->dev, "psb_intel_connector allocation error\n"); | 724 | dev_err(dev->dev, "psb_intel_connector allocation error\n"); |
725 | goto failed_encoder; | ||
728 | } | 726 | } |
729 | 727 | ||
730 | lvds_priv = kzalloc(sizeof(struct psb_intel_lvds_priv), GFP_KERNEL); | 728 | lvds_priv = kzalloc(sizeof(struct psb_intel_lvds_priv), GFP_KERNEL); |
@@ -862,7 +860,8 @@ failed_blc_i2c: | |||
862 | drm_encoder_cleanup(encoder); | 860 | drm_encoder_cleanup(encoder); |
863 | drm_connector_cleanup(connector); | 861 | drm_connector_cleanup(connector); |
864 | failed_connector: | 862 | failed_connector: |
865 | if (psb_intel_connector) | 863 | kfree(psb_intel_connector); |
866 | kfree(psb_intel_connector); | 864 | failed_encoder: |
865 | kfree(psb_intel_encoder); | ||
867 | } | 866 | } |
868 | 867 | ||
diff --git a/drivers/gpu/drm/radeon/rv515.c b/drivers/gpu/drm/radeon/rv515.c index 959bf4483bea..c520d06a930c 100644 --- a/drivers/gpu/drm/radeon/rv515.c +++ b/drivers/gpu/drm/radeon/rv515.c | |||
@@ -150,7 +150,7 @@ void rv515_gpu_init(struct radeon_device *rdev) | |||
150 | 150 | ||
151 | if (r100_gui_wait_for_idle(rdev)) { | 151 | if (r100_gui_wait_for_idle(rdev)) { |
152 | printk(KERN_WARNING "Failed to wait GUI idle while " | 152 | printk(KERN_WARNING "Failed to wait GUI idle while " |
153 | "reseting GPU. Bad things might happen.\n"); | 153 | "resetting GPU. Bad things might happen.\n"); |
154 | } | 154 | } |
155 | rv515_vga_render_disable(rdev); | 155 | rv515_vga_render_disable(rdev); |
156 | r420_pipes_init(rdev); | 156 | r420_pipes_init(rdev); |
@@ -162,7 +162,7 @@ void rv515_gpu_init(struct radeon_device *rdev) | |||
162 | WREG32_PLL(0x000D, tmp); | 162 | WREG32_PLL(0x000D, tmp); |
163 | if (r100_gui_wait_for_idle(rdev)) { | 163 | if (r100_gui_wait_for_idle(rdev)) { |
164 | printk(KERN_WARNING "Failed to wait GUI idle while " | 164 | printk(KERN_WARNING "Failed to wait GUI idle while " |
165 | "reseting GPU. Bad things might happen.\n"); | 165 | "resetting GPU. Bad things might happen.\n"); |
166 | } | 166 | } |
167 | if (rv515_mc_wait_for_idle(rdev)) { | 167 | if (rv515_mc_wait_for_idle(rdev)) { |
168 | printk(KERN_WARNING "Failed to wait MC idle while " | 168 | printk(KERN_WARNING "Failed to wait MC idle while " |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index f390f5f9cb68..2d6f573bfff2 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | |||
@@ -430,7 +430,7 @@ static int vmw_driver_load(struct drm_device *dev, unsigned long chipset) | |||
430 | svga_id = vmw_read(dev_priv, SVGA_REG_ID); | 430 | svga_id = vmw_read(dev_priv, SVGA_REG_ID); |
431 | if (svga_id != SVGA_ID_2) { | 431 | if (svga_id != SVGA_ID_2) { |
432 | ret = -ENOSYS; | 432 | ret = -ENOSYS; |
433 | DRM_ERROR("Unsuported SVGA ID 0x%x\n", svga_id); | 433 | DRM_ERROR("Unsupported SVGA ID 0x%x\n", svga_id); |
434 | mutex_unlock(&dev_priv->hw_mutex); | 434 | mutex_unlock(&dev_priv->hw_mutex); |
435 | goto out_err0; | 435 | goto out_err0; |
436 | } | 436 | } |
diff --git a/drivers/hwmon/tmp401.c b/drivers/hwmon/tmp401.c index 8b9a77486d57..951442adc067 100644 --- a/drivers/hwmon/tmp401.c +++ b/drivers/hwmon/tmp401.c | |||
@@ -624,7 +624,7 @@ static int tmp401_probe(struct i2c_client *client, | |||
624 | goto exit_remove; | 624 | goto exit_remove; |
625 | } | 625 | } |
626 | 626 | ||
627 | /* Register aditional tmp411 sysfs hooks */ | 627 | /* Register additional tmp411 sysfs hooks */ |
628 | if (data->kind == tmp411) { | 628 | if (data->kind == tmp411) { |
629 | for (i = 0; i < ARRAY_SIZE(tmp411_attr); i++) { | 629 | for (i = 0; i < ARRAY_SIZE(tmp411_attr); i++) { |
630 | err = device_create_file(&client->dev, | 630 | err = device_create_file(&client->dev, |
diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index 2b73d43cd691..ebe33d960d77 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c | |||
@@ -3450,7 +3450,7 @@ static struct se_node_acl *srpt_alloc_fabric_acl(struct se_portal_group *se_tpg) | |||
3450 | 3450 | ||
3451 | nacl = kzalloc(sizeof(struct srpt_node_acl), GFP_KERNEL); | 3451 | nacl = kzalloc(sizeof(struct srpt_node_acl), GFP_KERNEL); |
3452 | if (!nacl) { | 3452 | if (!nacl) { |
3453 | printk(KERN_ERR "Unable to alocate struct srpt_node_acl\n"); | 3453 | printk(KERN_ERR "Unable to allocate struct srpt_node_acl\n"); |
3454 | return NULL; | 3454 | return NULL; |
3455 | } | 3455 | } |
3456 | 3456 | ||
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index a08a53448b72..132f93b05154 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c | |||
@@ -1247,7 +1247,7 @@ static int iommu_init_domains(struct intel_iommu *iommu) | |||
1247 | unsigned long nlongs; | 1247 | unsigned long nlongs; |
1248 | 1248 | ||
1249 | ndomains = cap_ndoms(iommu->cap); | 1249 | ndomains = cap_ndoms(iommu->cap); |
1250 | pr_debug("IOMMU %d: Number of Domains supportd <%ld>\n", iommu->seq_id, | 1250 | pr_debug("IOMMU %d: Number of Domains supported <%ld>\n", iommu->seq_id, |
1251 | ndomains); | 1251 | ndomains); |
1252 | nlongs = BITS_TO_LONGS(ndomains); | 1252 | nlongs = BITS_TO_LONGS(ndomains); |
1253 | 1253 | ||
diff --git a/drivers/macintosh/mediabay.c b/drivers/macintosh/mediabay.c index 2fd435bc542e..831d7517c759 100644 --- a/drivers/macintosh/mediabay.c +++ b/drivers/macintosh/mediabay.c | |||
@@ -356,7 +356,7 @@ static void poll_media_bay(struct media_bay_info* bay) | |||
356 | static char *mb_content_types[] = { | 356 | static char *mb_content_types[] = { |
357 | "a floppy drive", | 357 | "a floppy drive", |
358 | "a floppy drive", | 358 | "a floppy drive", |
359 | "an unsuported audio device", | 359 | "an unsupported audio device", |
360 | "an ATA device", | 360 | "an ATA device", |
361 | "an unsupported PCI device", | 361 | "an unsupported PCI device", |
362 | "an unknown device", | 362 | "an unknown device", |
diff --git a/drivers/md/dm-bufio.c b/drivers/md/dm-bufio.c index 0a6806f80ab5..b6e58c7b6df5 100644 --- a/drivers/md/dm-bufio.c +++ b/drivers/md/dm-bufio.c | |||
@@ -12,7 +12,6 @@ | |||
12 | #include <linux/dm-io.h> | 12 | #include <linux/dm-io.h> |
13 | #include <linux/slab.h> | 13 | #include <linux/slab.h> |
14 | #include <linux/vmalloc.h> | 14 | #include <linux/vmalloc.h> |
15 | #include <linux/version.h> | ||
16 | #include <linux/shrinker.h> | 15 | #include <linux/shrinker.h> |
17 | #include <linux/module.h> | 16 | #include <linux/module.h> |
18 | 17 | ||
diff --git a/drivers/media/dvb/dvb-usb/lmedm04.c b/drivers/media/dvb/dvb-usb/lmedm04.c index b3fe05bbffc9..291f6b110399 100644 --- a/drivers/media/dvb/dvb-usb/lmedm04.c +++ b/drivers/media/dvb/dvb-usb/lmedm04.c | |||
@@ -1054,7 +1054,7 @@ static int dm04_lme2510_tuner(struct dvb_usb_adapter *adap) | |||
1054 | if (ret) | 1054 | if (ret) |
1055 | info("TUN Found %s tuner", tun_msg[ret]); | 1055 | info("TUN Found %s tuner", tun_msg[ret]); |
1056 | else { | 1056 | else { |
1057 | info("TUN No tuner found --- reseting device"); | 1057 | info("TUN No tuner found --- resetting device"); |
1058 | lme_coldreset(adap->dev->udev); | 1058 | lme_coldreset(adap->dev->udev); |
1059 | return -ENODEV; | 1059 | return -ENODEV; |
1060 | } | 1060 | } |
diff --git a/drivers/media/dvb/frontends/drxk_hard.c b/drivers/media/dvb/frontends/drxk_hard.c index 6980ed7b8786..5ab53795bd7a 100644 --- a/drivers/media/dvb/frontends/drxk_hard.c +++ b/drivers/media/dvb/frontends/drxk_hard.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include <linux/delay.h> | 28 | #include <linux/delay.h> |
29 | #include <linux/firmware.h> | 29 | #include <linux/firmware.h> |
30 | #include <linux/i2c.h> | 30 | #include <linux/i2c.h> |
31 | #include <linux/version.h> | ||
32 | #include <asm/div64.h> | 31 | #include <asm/div64.h> |
33 | 32 | ||
34 | #include "dvb_frontend.h" | 33 | #include "dvb_frontend.h" |
diff --git a/drivers/media/dvb/frontends/tda1004x.c b/drivers/media/dvb/frontends/tda1004x.c index ae6f22aae677..35d72b46aa1e 100644 --- a/drivers/media/dvb/frontends/tda1004x.c +++ b/drivers/media/dvb/frontends/tda1004x.c | |||
@@ -1272,7 +1272,7 @@ struct dvb_frontend* tda10045_attach(const struct tda1004x_config* config, | |||
1272 | /* allocate memory for the internal state */ | 1272 | /* allocate memory for the internal state */ |
1273 | state = kzalloc(sizeof(struct tda1004x_state), GFP_KERNEL); | 1273 | state = kzalloc(sizeof(struct tda1004x_state), GFP_KERNEL); |
1274 | if (!state) { | 1274 | if (!state) { |
1275 | printk(KERN_ERR "Can't alocate memory for tda10045 state\n"); | 1275 | printk(KERN_ERR "Can't allocate memory for tda10045 state\n"); |
1276 | return NULL; | 1276 | return NULL; |
1277 | } | 1277 | } |
1278 | 1278 | ||
@@ -1342,7 +1342,7 @@ struct dvb_frontend* tda10046_attach(const struct tda1004x_config* config, | |||
1342 | /* allocate memory for the internal state */ | 1342 | /* allocate memory for the internal state */ |
1343 | state = kzalloc(sizeof(struct tda1004x_state), GFP_KERNEL); | 1343 | state = kzalloc(sizeof(struct tda1004x_state), GFP_KERNEL); |
1344 | if (!state) { | 1344 | if (!state) { |
1345 | printk(KERN_ERR "Can't alocate memory for tda10046 state\n"); | 1345 | printk(KERN_ERR "Can't allocate memory for tda10046 state\n"); |
1346 | return NULL; | 1346 | return NULL; |
1347 | } | 1347 | } |
1348 | 1348 | ||
diff --git a/drivers/media/dvb/mantis/mantis_hif.c b/drivers/media/dvb/mantis/mantis_hif.c index 672cf4d2462d..10c68df7e16f 100644 --- a/drivers/media/dvb/mantis/mantis_hif.c +++ b/drivers/media/dvb/mantis/mantis_hif.c | |||
@@ -76,7 +76,7 @@ static int mantis_hif_write_wait(struct mantis_ca *ca) | |||
76 | udelay(500); | 76 | udelay(500); |
77 | timeout++; | 77 | timeout++; |
78 | if (timeout > 100) { | 78 | if (timeout > 100) { |
79 | dprintk(MANTIS_ERROR, 1, "Adater(%d) Slot(0): Write operation timed out!", mantis->num); | 79 | dprintk(MANTIS_ERROR, 1, "Adapter(%d) Slot(0): Write operation timed out!", mantis->num); |
80 | rc = -ETIMEDOUT; | 80 | rc = -ETIMEDOUT; |
81 | break; | 81 | break; |
82 | } | 82 | } |
diff --git a/drivers/media/radio/radio-sf16fmr2.c b/drivers/media/radio/radio-sf16fmr2.c index 2dd485996ba8..7ab9afadf29b 100644 --- a/drivers/media/radio/radio-sf16fmr2.c +++ b/drivers/media/radio/radio-sf16fmr2.c | |||
@@ -172,7 +172,7 @@ static int fmr2_tea_ext_init(struct snd_tea575x *tea) | |||
172 | fmr2->volume = v4l2_ctrl_new_std(&tea->ctrl_handler, &fmr2_ctrl_ops, V4L2_CID_AUDIO_VOLUME, 0, 68, 2, 56); | 172 | fmr2->volume = v4l2_ctrl_new_std(&tea->ctrl_handler, &fmr2_ctrl_ops, V4L2_CID_AUDIO_VOLUME, 0, 68, 2, 56); |
173 | fmr2->balance = v4l2_ctrl_new_std(&tea->ctrl_handler, &fmr2_ctrl_ops, V4L2_CID_AUDIO_BALANCE, -68, 68, 2, 0); | 173 | fmr2->balance = v4l2_ctrl_new_std(&tea->ctrl_handler, &fmr2_ctrl_ops, V4L2_CID_AUDIO_BALANCE, -68, 68, 2, 0); |
174 | if (tea->ctrl_handler.error) { | 174 | if (tea->ctrl_handler.error) { |
175 | printk(KERN_ERR "radio-sf16fmr2: can't initialize contrls\n"); | 175 | printk(KERN_ERR "radio-sf16fmr2: can't initialize controls\n"); |
176 | return tea->ctrl_handler.error; | 176 | return tea->ctrl_handler.error; |
177 | } | 177 | } |
178 | } | 178 | } |
diff --git a/drivers/media/video/davinci/dm355_ccdc.c b/drivers/media/video/davinci/dm355_ccdc.c index f83baf3a52b0..5b68847d4017 100644 --- a/drivers/media/video/davinci/dm355_ccdc.c +++ b/drivers/media/video/davinci/dm355_ccdc.c | |||
@@ -292,7 +292,7 @@ static int validate_ccdc_param(struct ccdc_config_params_raw *ccdcparam) | |||
292 | if ((ccdcparam->med_filt_thres < 0) || | 292 | if ((ccdcparam->med_filt_thres < 0) || |
293 | (ccdcparam->med_filt_thres > CCDC_MED_FILT_THRESH)) { | 293 | (ccdcparam->med_filt_thres > CCDC_MED_FILT_THRESH)) { |
294 | dev_dbg(ccdc_cfg.dev, | 294 | dev_dbg(ccdc_cfg.dev, |
295 | "Invalid value of median filter thresold\n"); | 295 | "Invalid value of median filter threshold\n"); |
296 | return -EINVAL; | 296 | return -EINVAL; |
297 | } | 297 | } |
298 | 298 | ||
diff --git a/drivers/media/video/ov6650.c b/drivers/media/video/ov6650.c index 6806345ec2f0..3627f3225bbb 100644 --- a/drivers/media/video/ov6650.c +++ b/drivers/media/video/ov6650.c | |||
@@ -649,7 +649,7 @@ static int ov6650_s_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *mf) | |||
649 | clkrc = CLKRC_24MHz; | 649 | clkrc = CLKRC_24MHz; |
650 | } else { | 650 | } else { |
651 | dev_err(&client->dev, | 651 | dev_err(&client->dev, |
652 | "unspported input clock, check platform data\n"); | 652 | "unsupported input clock, check platform data\n"); |
653 | return -EINVAL; | 653 | return -EINVAL; |
654 | } | 654 | } |
655 | mclk = sense->master_clock; | 655 | mclk = sense->master_clock; |
diff --git a/drivers/mfd/ab5500-core.c b/drivers/mfd/ab5500-core.c index bd56a764dea1..54d0fe40845f 100644 --- a/drivers/mfd/ab5500-core.c +++ b/drivers/mfd/ab5500-core.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include <linux/bitops.h> | 28 | #include <linux/bitops.h> |
29 | #include <linux/spinlock.h> | 29 | #include <linux/spinlock.h> |
30 | #include <linux/mfd/core.h> | 30 | #include <linux/mfd/core.h> |
31 | #include <linux/version.h> | ||
32 | #include <linux/mfd/db5500-prcmu.h> | 31 | #include <linux/mfd/db5500-prcmu.h> |
33 | 32 | ||
34 | #include "ab5500-core.h" | 33 | #include "ab5500-core.h" |
diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c index 1bcfd6dbb5cc..c3622a69f432 100644 --- a/drivers/mmc/host/s3cmci.c +++ b/drivers/mmc/host/s3cmci.c | |||
@@ -1606,7 +1606,7 @@ static int __devinit s3cmci_probe(struct platform_device *pdev) | |||
1606 | host->mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 1606 | host->mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
1607 | if (!host->mem) { | 1607 | if (!host->mem) { |
1608 | dev_err(&pdev->dev, | 1608 | dev_err(&pdev->dev, |
1609 | "failed to get io memory region resouce.\n"); | 1609 | "failed to get io memory region resource.\n"); |
1610 | 1610 | ||
1611 | ret = -ENOENT; | 1611 | ret = -ENOENT; |
1612 | goto probe_free_gpio; | 1612 | goto probe_free_gpio; |
@@ -1630,7 +1630,7 @@ static int __devinit s3cmci_probe(struct platform_device *pdev) | |||
1630 | 1630 | ||
1631 | host->irq = platform_get_irq(pdev, 0); | 1631 | host->irq = platform_get_irq(pdev, 0); |
1632 | if (host->irq == 0) { | 1632 | if (host->irq == 0) { |
1633 | dev_err(&pdev->dev, "failed to get interrupt resouce.\n"); | 1633 | dev_err(&pdev->dev, "failed to get interrupt resource.\n"); |
1634 | ret = -EINVAL; | 1634 | ret = -EINVAL; |
1635 | goto probe_iounmap; | 1635 | goto probe_iounmap; |
1636 | } | 1636 | } |
diff --git a/drivers/mtd/chips/chipreg.c b/drivers/mtd/chips/chipreg.c index da1f96f385c7..0bbc61ba9524 100644 --- a/drivers/mtd/chips/chipreg.c +++ b/drivers/mtd/chips/chipreg.c | |||
@@ -76,10 +76,7 @@ struct mtd_info *do_map_probe(const char *name, struct map_info *map) | |||
76 | */ | 76 | */ |
77 | module_put(drv->module); | 77 | module_put(drv->module); |
78 | 78 | ||
79 | if (ret) | 79 | return ret; |
80 | return ret; | ||
81 | |||
82 | return NULL; | ||
83 | } | 80 | } |
84 | /* | 81 | /* |
85 | * Destroy an MTD device which was created for a map device. | 82 | * Destroy an MTD device which was created for a map device. |
diff --git a/drivers/net/wireless/hostap/hostap_hw.c b/drivers/net/wireless/hostap/hostap_hw.c index aa15cc4269a1..50f87b60b0bd 100644 --- a/drivers/net/wireless/hostap/hostap_hw.c +++ b/drivers/net/wireless/hostap/hostap_hw.c | |||
@@ -1466,7 +1466,7 @@ static int prism2_hw_enable(struct net_device *dev, int initial) | |||
1466 | * before it starts acting as an AP, so reset port automatically | 1466 | * before it starts acting as an AP, so reset port automatically |
1467 | * here just in case */ | 1467 | * here just in case */ |
1468 | if (initial && prism2_reset_port(dev)) { | 1468 | if (initial && prism2_reset_port(dev)) { |
1469 | printk("%s: MAC port 0 reseting failed\n", dev->name); | 1469 | printk("%s: MAC port 0 resetting failed\n", dev->name); |
1470 | return 1; | 1470 | return 1; |
1471 | } | 1471 | } |
1472 | 1472 | ||
@@ -1557,7 +1557,7 @@ static void prism2_hw_reset(struct net_device *dev) | |||
1557 | static long last_reset = 0; | 1557 | static long last_reset = 0; |
1558 | 1558 | ||
1559 | /* do not reset card more than once per second to avoid ending up in a | 1559 | /* do not reset card more than once per second to avoid ending up in a |
1560 | * busy loop reseting the card */ | 1560 | * busy loop resetting the card */ |
1561 | if (time_before_eq(jiffies, last_reset + HZ)) | 1561 | if (time_before_eq(jiffies, last_reset + HZ)) |
1562 | return; | 1562 | return; |
1563 | last_reset = jiffies; | 1563 | last_reset = jiffies; |
diff --git a/drivers/net/wireless/zd1211rw/zd_mac.c b/drivers/net/wireless/zd1211rw/zd_mac.c index 9fcde36d5013..c9e2660e1263 100644 --- a/drivers/net/wireless/zd1211rw/zd_mac.c +++ b/drivers/net/wireless/zd1211rw/zd_mac.c | |||
@@ -856,7 +856,7 @@ reset_device: | |||
856 | 856 | ||
857 | /* semaphore stuck, reset device to avoid fw freeze later */ | 857 | /* semaphore stuck, reset device to avoid fw freeze later */ |
858 | dev_warn(zd_mac_dev(mac), "CR_BCN_FIFO_SEMAPHORE stuck, " | 858 | dev_warn(zd_mac_dev(mac), "CR_BCN_FIFO_SEMAPHORE stuck, " |
859 | "reseting device..."); | 859 | "resetting device..."); |
860 | usb_queue_reset_device(mac->chip.usb.intf); | 860 | usb_queue_reset_device(mac->chip.usb.intf); |
861 | 861 | ||
862 | return r; | 862 | return r; |
diff --git a/drivers/net/wireless/zd1211rw/zd_usb.c b/drivers/net/wireless/zd1211rw/zd_usb.c index 785bdbe38f2a..f766b3e67c6d 100644 --- a/drivers/net/wireless/zd1211rw/zd_usb.c +++ b/drivers/net/wireless/zd1211rw/zd_usb.c | |||
@@ -1104,7 +1104,7 @@ static void zd_tx_watchdog_handler(struct work_struct *work) | |||
1104 | goto out; | 1104 | goto out; |
1105 | 1105 | ||
1106 | /* TX halted, try reset */ | 1106 | /* TX halted, try reset */ |
1107 | dev_warn(zd_usb_dev(usb), "TX-stall detected, reseting device..."); | 1107 | dev_warn(zd_usb_dev(usb), "TX-stall detected, resetting device..."); |
1108 | 1108 | ||
1109 | usb_queue_reset_device(usb->intf); | 1109 | usb_queue_reset_device(usb->intf); |
1110 | 1110 | ||
diff --git a/drivers/platform/x86/hdaps.c b/drivers/platform/x86/hdaps.c index 5a34973dc164..ba68d4e7a779 100644 --- a/drivers/platform/x86/hdaps.c +++ b/drivers/platform/x86/hdaps.c | |||
@@ -379,7 +379,7 @@ static ssize_t hdaps_temp1_show(struct device *dev, | |||
379 | int ret; | 379 | int ret; |
380 | 380 | ||
381 | ret = hdaps_readb_one(HDAPS_PORT_TEMP1, &temp); | 381 | ret = hdaps_readb_one(HDAPS_PORT_TEMP1, &temp); |
382 | if (ret < 0) | 382 | if (ret) |
383 | return ret; | 383 | return ret; |
384 | 384 | ||
385 | return sprintf(buf, "%u\n", temp); | 385 | return sprintf(buf, "%u\n", temp); |
@@ -392,7 +392,7 @@ static ssize_t hdaps_temp2_show(struct device *dev, | |||
392 | int ret; | 392 | int ret; |
393 | 393 | ||
394 | ret = hdaps_readb_one(HDAPS_PORT_TEMP2, &temp); | 394 | ret = hdaps_readb_one(HDAPS_PORT_TEMP2, &temp); |
395 | if (ret < 0) | 395 | if (ret) |
396 | return ret; | 396 | return ret; |
397 | 397 | ||
398 | return sprintf(buf, "%u\n", temp); | 398 | return sprintf(buf, "%u\n", temp); |
diff --git a/drivers/power/bq27x00_battery.c b/drivers/power/bq27x00_battery.c index 1ed6ea0bad6e..222ccd872ac5 100644 --- a/drivers/power/bq27x00_battery.c +++ b/drivers/power/bq27x00_battery.c | |||
@@ -47,10 +47,10 @@ | |||
47 | #define BQ27x00_REG_TTE 0x16 | 47 | #define BQ27x00_REG_TTE 0x16 |
48 | #define BQ27x00_REG_TTF 0x18 | 48 | #define BQ27x00_REG_TTF 0x18 |
49 | #define BQ27x00_REG_TTECP 0x26 | 49 | #define BQ27x00_REG_TTECP 0x26 |
50 | #define BQ27x00_REG_NAC 0x0C /* Nominal available capaciy */ | 50 | #define BQ27x00_REG_NAC 0x0C /* Nominal available capacity */ |
51 | #define BQ27x00_REG_LMD 0x12 /* Last measured discharge */ | 51 | #define BQ27x00_REG_LMD 0x12 /* Last measured discharge */ |
52 | #define BQ27x00_REG_CYCT 0x2A /* Cycle count total */ | 52 | #define BQ27x00_REG_CYCT 0x2A /* Cycle count total */ |
53 | #define BQ27x00_REG_AE 0x22 /* Available enery */ | 53 | #define BQ27x00_REG_AE 0x22 /* Available energy */ |
54 | 54 | ||
55 | #define BQ27000_REG_RSOC 0x0B /* Relative State-of-Charge */ | 55 | #define BQ27000_REG_RSOC 0x0B /* Relative State-of-Charge */ |
56 | #define BQ27000_REG_ILMD 0x76 /* Initial last measured discharge */ | 56 | #define BQ27000_REG_ILMD 0x76 /* Initial last measured discharge */ |
diff --git a/drivers/scsi/aic7xxx/aic79xx_core.c b/drivers/scsi/aic7xxx/aic79xx_core.c index 5f8617dd43bb..25417d0e7acb 100644 --- a/drivers/scsi/aic7xxx/aic79xx_core.c +++ b/drivers/scsi/aic7xxx/aic79xx_core.c | |||
@@ -8993,7 +8993,7 @@ ahd_handle_scsi_status(struct ahd_softc *ahd, struct scb *scb) | |||
8993 | printk("Invalid Command IU Field\n"); | 8993 | printk("Invalid Command IU Field\n"); |
8994 | break; | 8994 | break; |
8995 | case SIU_PFC_TMF_NOT_SUPPORTED: | 8995 | case SIU_PFC_TMF_NOT_SUPPORTED: |
8996 | printk("TMF not supportd\n"); | 8996 | printk("TMF not supported\n"); |
8997 | break; | 8997 | break; |
8998 | case SIU_PFC_TMF_FAILED: | 8998 | case SIU_PFC_TMF_FAILED: |
8999 | printk("TMF failed\n"); | 8999 | printk("TMF failed\n"); |
@@ -9113,7 +9113,7 @@ ahd_handle_scsi_status(struct ahd_softc *ahd, struct scb *scb) | |||
9113 | break; | 9113 | break; |
9114 | } | 9114 | } |
9115 | case SCSI_STATUS_OK: | 9115 | case SCSI_STATUS_OK: |
9116 | printk("%s: Interrupted for staus of 0???\n", | 9116 | printk("%s: Interrupted for status of 0???\n", |
9117 | ahd_name(ahd)); | 9117 | ahd_name(ahd)); |
9118 | /* FALLTHROUGH */ | 9118 | /* FALLTHROUGH */ |
9119 | default: | 9119 | default: |
diff --git a/drivers/scsi/aic7xxx/aic7xxx_core.c b/drivers/scsi/aic7xxx/aic7xxx_core.c index dc28b0a91b22..10172a3af1b9 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_core.c +++ b/drivers/scsi/aic7xxx/aic7xxx_core.c | |||
@@ -1049,7 +1049,7 @@ ahc_handle_seqint(struct ahc_softc *ahc, u_int intstat) | |||
1049 | ahc_set_scsi_status(scb, hscb->shared_data.status.scsi_status); | 1049 | ahc_set_scsi_status(scb, hscb->shared_data.status.scsi_status); |
1050 | switch (hscb->shared_data.status.scsi_status) { | 1050 | switch (hscb->shared_data.status.scsi_status) { |
1051 | case SCSI_STATUS_OK: | 1051 | case SCSI_STATUS_OK: |
1052 | printk("%s: Interrupted for staus of 0???\n", | 1052 | printk("%s: Interrupted for status of 0???\n", |
1053 | ahc_name(ahc)); | 1053 | ahc_name(ahc)); |
1054 | break; | 1054 | break; |
1055 | case SCSI_STATUS_CMD_TERMINATED: | 1055 | case SCSI_STATUS_CMD_TERMINATED: |
diff --git a/drivers/scsi/isci/host.c b/drivers/scsi/isci/host.c index 418391b1c361..6ca9b26bb2fb 100644 --- a/drivers/scsi/isci/host.c +++ b/drivers/scsi/isci/host.c | |||
@@ -58,7 +58,6 @@ | |||
58 | #include "host.h" | 58 | #include "host.h" |
59 | #include "isci.h" | 59 | #include "isci.h" |
60 | #include "port.h" | 60 | #include "port.h" |
61 | #include "host.h" | ||
62 | #include "probe_roms.h" | 61 | #include "probe_roms.h" |
63 | #include "remote_device.h" | 62 | #include "remote_device.h" |
64 | #include "request.h" | 63 | #include "request.h" |
diff --git a/drivers/scsi/mpt2sas/mpt2sas_config.c b/drivers/scsi/mpt2sas/mpt2sas_config.c index 36ea0b2d8020..2b4d37613d32 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_config.c +++ b/drivers/scsi/mpt2sas/mpt2sas_config.c | |||
@@ -149,7 +149,7 @@ _config_display_some_debug(struct MPT2SAS_ADAPTER *ioc, u16 smid, | |||
149 | desc = "raid_config"; | 149 | desc = "raid_config"; |
150 | break; | 150 | break; |
151 | case MPI2_CONFIG_EXTPAGETYPE_DRIVER_MAPPING: | 151 | case MPI2_CONFIG_EXTPAGETYPE_DRIVER_MAPPING: |
152 | desc = "driver_mappping"; | 152 | desc = "driver_mapping"; |
153 | break; | 153 | break; |
154 | } | 154 | } |
155 | break; | 155 | break; |
diff --git a/drivers/scsi/pm8001/pm8001_hwi.c b/drivers/scsi/pm8001/pm8001_hwi.c index b7b92f7be2aa..e12c4f632a63 100644 --- a/drivers/scsi/pm8001/pm8001_hwi.c +++ b/drivers/scsi/pm8001/pm8001_hwi.c | |||
@@ -3532,7 +3532,7 @@ static void process_one_iomb(struct pm8001_hba_info *pm8001_ha, void *piomb) | |||
3532 | break; | 3532 | break; |
3533 | case OPC_OUB_DEREG_DEV: | 3533 | case OPC_OUB_DEREG_DEV: |
3534 | PM8001_MSG_DBG(pm8001_ha, | 3534 | PM8001_MSG_DBG(pm8001_ha, |
3535 | pm8001_printk("unresgister the deviece\n")); | 3535 | pm8001_printk("unregister the device\n")); |
3536 | mpi_dereg_resp(pm8001_ha, piomb); | 3536 | mpi_dereg_resp(pm8001_ha, piomb); |
3537 | break; | 3537 | break; |
3538 | case OPC_OUB_GET_DEV_HANDLE: | 3538 | case OPC_OUB_GET_DEV_HANDLE: |
diff --git a/drivers/scsi/pmcraid.h b/drivers/scsi/pmcraid.h index ca496c7474e3..e1d150f3fd4d 100644 --- a/drivers/scsi/pmcraid.h +++ b/drivers/scsi/pmcraid.h | |||
@@ -857,11 +857,11 @@ static struct pmcraid_ioasc_error pmcraid_ioasc_error_table[] = { | |||
857 | {0x01180600, IOASC_LOG_LEVEL_HARD, | 857 | {0x01180600, IOASC_LOG_LEVEL_HARD, |
858 | "Recovered Error, soft media error, sector reassignment suggested"}, | 858 | "Recovered Error, soft media error, sector reassignment suggested"}, |
859 | {0x015D0000, IOASC_LOG_LEVEL_HARD, | 859 | {0x015D0000, IOASC_LOG_LEVEL_HARD, |
860 | "Recovered Error, failure prediction thresold exceeded"}, | 860 | "Recovered Error, failure prediction threshold exceeded"}, |
861 | {0x015D9200, IOASC_LOG_LEVEL_HARD, | 861 | {0x015D9200, IOASC_LOG_LEVEL_HARD, |
862 | "Recovered Error, soft Cache Card Battery error thresold"}, | 862 | "Recovered Error, soft Cache Card Battery error threshold"}, |
863 | {0x015D9200, IOASC_LOG_LEVEL_HARD, | 863 | {0x015D9200, IOASC_LOG_LEVEL_HARD, |
864 | "Recovered Error, soft Cache Card Battery error thresold"}, | 864 | "Recovered Error, soft Cache Card Battery error threshold"}, |
865 | {0x02048000, IOASC_LOG_LEVEL_HARD, | 865 | {0x02048000, IOASC_LOG_LEVEL_HARD, |
866 | "Not Ready, IOA Reset Required"}, | 866 | "Not Ready, IOA Reset Required"}, |
867 | {0x02408500, IOASC_LOG_LEVEL_HARD, | 867 | {0x02408500, IOASC_LOG_LEVEL_HARD, |
diff --git a/drivers/scsi/qla2xxx/qla_bsg.c b/drivers/scsi/qla2xxx/qla_bsg.c index 1682e2e4201d..2c4714279bcc 100644 --- a/drivers/scsi/qla2xxx/qla_bsg.c +++ b/drivers/scsi/qla2xxx/qla_bsg.c | |||
@@ -731,7 +731,7 @@ qla2x00_process_loopback(struct fc_bsg_job *bsg_job) | |||
731 | 731 | ||
732 | if (elreq.options != EXTERNAL_LOOPBACK) { | 732 | if (elreq.options != EXTERNAL_LOOPBACK) { |
733 | ql_dbg(ql_dbg_user, vha, 0x7020, | 733 | ql_dbg(ql_dbg_user, vha, 0x7020, |
734 | "Internal: curent port config = %x\n", | 734 | "Internal: current port config = %x\n", |
735 | config[0]); | 735 | config[0]); |
736 | if (qla81xx_set_internal_loopback(vha, config, | 736 | if (qla81xx_set_internal_loopback(vha, config, |
737 | new_config)) { | 737 | new_config)) { |
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index ce6d3b7f0c61..edf503437e96 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c | |||
@@ -3382,7 +3382,7 @@ static int get_fw_boot_info(struct scsi_qla_host *ha, uint16_t ddb_index[]) | |||
3382 | if (qla4xxx_get_flash(ha, buf_dma, addr, | 3382 | if (qla4xxx_get_flash(ha, buf_dma, addr, |
3383 | 13 * sizeof(uint8_t)) != QLA_SUCCESS) { | 3383 | 13 * sizeof(uint8_t)) != QLA_SUCCESS) { |
3384 | DEBUG2(ql4_printk(KERN_ERR, ha, "scsi%ld: %s: Get Flash" | 3384 | DEBUG2(ql4_printk(KERN_ERR, ha, "scsi%ld: %s: Get Flash" |
3385 | "failed\n", ha->host_no, __func__)); | 3385 | " failed\n", ha->host_no, __func__)); |
3386 | ret = QLA_ERROR; | 3386 | ret = QLA_ERROR; |
3387 | goto exit_boot_info_free; | 3387 | goto exit_boot_info_free; |
3388 | } | 3388 | } |
@@ -3620,7 +3620,7 @@ static int qla4xxx_setup_boot_info(struct scsi_qla_host *ha) | |||
3620 | 3620 | ||
3621 | if (ql4xdisablesysfsboot) { | 3621 | if (ql4xdisablesysfsboot) { |
3622 | ql4_printk(KERN_INFO, ha, | 3622 | ql4_printk(KERN_INFO, ha, |
3623 | "%s: syfsboot disabled - driver will trigger login" | 3623 | "%s: syfsboot disabled - driver will trigger login " |
3624 | "and publish session for discovery .\n", __func__); | 3624 | "and publish session for discovery .\n", __func__); |
3625 | return QLA_SUCCESS; | 3625 | return QLA_SUCCESS; |
3626 | } | 3626 | } |
diff --git a/drivers/staging/iio/dac/ad5686.c b/drivers/staging/iio/dac/ad5686.c index ce2d6193dd89..2415a6e60c77 100644 --- a/drivers/staging/iio/dac/ad5686.c +++ b/drivers/staging/iio/dac/ad5686.c | |||
@@ -15,7 +15,6 @@ | |||
15 | #include <linux/slab.h> | 15 | #include <linux/slab.h> |
16 | #include <linux/sysfs.h> | 16 | #include <linux/sysfs.h> |
17 | #include <linux/regulator/consumer.h> | 17 | #include <linux/regulator/consumer.h> |
18 | #include <linux/module.h> | ||
19 | 18 | ||
20 | #include "../iio.h" | 19 | #include "../iio.h" |
21 | #include "../sysfs.h" | 20 | #include "../sysfs.h" |
diff --git a/drivers/tty/synclink_gt.c b/drivers/tty/synclink_gt.c index 6bee4907c6a5..34b1a3c43066 100644 --- a/drivers/tty/synclink_gt.c +++ b/drivers/tty/synclink_gt.c | |||
@@ -3923,7 +3923,7 @@ static void tdma_reset(struct slgt_info *info) | |||
3923 | */ | 3923 | */ |
3924 | static void enable_loopback(struct slgt_info *info) | 3924 | static void enable_loopback(struct slgt_info *info) |
3925 | { | 3925 | { |
3926 | /* SCR (serial control) BIT2=looopback enable */ | 3926 | /* SCR (serial control) BIT2=loopback enable */ |
3927 | wr_reg16(info, SCR, (unsigned short)(rd_reg16(info, SCR) | BIT2)); | 3927 | wr_reg16(info, SCR, (unsigned short)(rd_reg16(info, SCR) | BIT2)); |
3928 | 3928 | ||
3929 | if (info->params.mode != MGSL_MODE_ASYNC) { | 3929 | if (info->params.mode != MGSL_MODE_ASYNC) { |