aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/Changes12
-rw-r--r--Documentation/PCI/pci.txt2
-rw-r--r--Documentation/feature-removal-schedule.txt2
-rw-r--r--Documentation/hwmon/hpfall.c2
-rw-r--r--Documentation/power/tricks.txt2
-rw-r--r--Documentation/rt-mutex-design.txt2
-rw-r--r--Documentation/scsi/ChangeLog.lpfc2
-rw-r--r--Documentation/sparse.txt2
-rw-r--r--Documentation/sysctl/vm.txt2
-rw-r--r--Documentation/zh_CN/sparse.txt2
-rw-r--r--arch/arm/mach-imx/dma-v1.c3
-rw-r--r--arch/arm/mach-msm/acpuclock-arm11.c4
-rw-r--r--arch/arm/mach-omap2/dpll3xxx.c2
-rw-r--r--arch/arm/mach-omap2/sleep34xx.S2
-rw-r--r--arch/arm/mach-sa1100/collie.c2
-rw-r--r--arch/arm/mach-u300/core.c7
-rw-r--r--arch/arm/mach-u300/gpio.c2
-rw-r--r--arch/arm/plat-s3c24xx/clock.c2
-rw-r--r--arch/arm/plat-samsung/clock.c2
-rw-r--r--arch/arm/plat-spear/padmux.c2
-rw-r--r--arch/cris/arch-v32/mm/intmem.c13
-rw-r--r--arch/h8300/kernel/timer/itu.c2
-rw-r--r--arch/h8300/kernel/timer/timer16.c2
-rw-r--r--arch/h8300/kernel/timer/timer8.c2
-rw-r--r--arch/ia64/kvm/kvm-ia64.c6
-rw-r--r--arch/ia64/sn/kernel/setup.c2
-rw-r--r--arch/microblaze/Makefile2
-rw-r--r--arch/powerpc/kernel/suspend.c2
-rw-r--r--arch/powerpc/platforms/ps3/htab.c2
-rw-r--r--arch/sh/kernel/clkdev.c2
-rw-r--r--arch/sparc/boot/btfixupprep.c4
-rw-r--r--arch/x86/kernel/acpi/sleep.c2
-rw-r--r--arch/x86/kernel/apic/apic.c2
-rw-r--r--arch/x86/kernel/apm_32.c2
-rw-r--r--arch/x86/kernel/cpu/cpufreq/powernow-k8.c2
-rw-r--r--arch/x86/kernel/head32.c2
-rw-r--r--arch/x86/mm/init_64.c2
-rw-r--r--arch/x86/power/cpu.c2
-rw-r--r--arch/x86/power/hibernate_64.c2
-rw-r--r--drivers/block/cciss.c2
-rw-r--r--drivers/block/drbd/drbd_receiver.c2
-rw-r--r--drivers/block/nbd.c2
-rw-r--r--drivers/char/synclink_gt.c2
-rw-r--r--drivers/crypto/amcc/crypto4xx_reg_def.h2
-rw-r--r--drivers/dma/at_hdmac.c2
-rw-r--r--drivers/dma/fsldma.c2
-rw-r--r--drivers/gpu/drm/drm_edid.c7
-rw-r--r--drivers/gpu/drm/i915/intel_sdvo.c4
-rw-r--r--drivers/gpu/drm/i915/intel_tv.c2
-rw-r--r--drivers/gpu/drm/savage/savage_bci.c2
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_resource.c2
-rw-r--r--drivers/ide/ide-gd.c2
-rw-r--r--drivers/infiniband/hw/cxgb3/iwch_qp.c4
-rw-r--r--drivers/infiniband/hw/cxgb4/qp.c4
-rw-r--r--drivers/infiniband/hw/ehca/hcp_if.h2
-rw-r--r--drivers/infiniband/hw/ipath/ipath_file_ops.c2
-rw-r--r--drivers/input/misc/ad714x.c2
-rw-r--r--drivers/isdn/hardware/mISDN/avmfritz.c2
-rw-r--r--drivers/isdn/hardware/mISDN/hfcmulti.c4
-rw-r--r--drivers/isdn/hardware/mISDN/hfcpci.c2
-rw-r--r--drivers/isdn/hardware/mISDN/mISDNinfineon.c2
-rw-r--r--drivers/isdn/hardware/mISDN/speedfax.c2
-rw-r--r--drivers/isdn/hardware/mISDN/w6692.c2
-rw-r--r--drivers/isdn/hisax/callc.c2
-rw-r--r--drivers/isdn/hisax/tei.c2
-rw-r--r--drivers/isdn/mISDN/tei.c2
-rw-r--r--drivers/media/dvb/siano/smscoreapi.c2
-rw-r--r--drivers/media/video/gspca/sunplus.c4
-rw-r--r--drivers/media/video/usbvideo/vicam.c2
-rw-r--r--drivers/media/video/v4l2-compat-ioctl32.c2
-rw-r--r--drivers/media/video/zoran/zoran.h2
-rw-r--r--drivers/media/video/zoran/zoran_device.c2
-rw-r--r--drivers/media/video/zoran/zr36050.c2
-rw-r--r--drivers/media/video/zoran/zr36060.c2
-rw-r--r--drivers/message/fusion/mptbase.c4
-rw-r--r--drivers/mtd/nand/denali.c2
-rw-r--r--drivers/net/3c527.c4
-rw-r--r--drivers/net/appletalk/ipddp.c2
-rw-r--r--drivers/net/benet/be_hw.h2
-rw-r--r--drivers/net/gianfar.c2
-rw-r--r--drivers/net/hp100.c2
-rw-r--r--drivers/net/ibm_newemac/core.c2
-rw-r--r--drivers/net/ksz884x.c2
-rw-r--r--drivers/net/ll_temac_main.c2
-rw-r--r--drivers/net/sh_eth.c2
-rw-r--r--drivers/net/tulip/dmfe.c20
-rw-r--r--drivers/net/wimax/i2400m/control.c2
-rw-r--r--drivers/net/wireless/hostap/hostap_ap.c2
-rw-r--r--drivers/net/wireless/hostap/hostap_hw.c2
-rw-r--r--drivers/parisc/ccio-dma.c4
-rw-r--r--drivers/pcmcia/sa11xx_base.c2
-rw-r--r--drivers/rapidio/rio.c2
-rw-r--r--drivers/rtc/rtc-fm3130.c2
-rw-r--r--drivers/rtc/rtc-rx8025.c2
-rw-r--r--drivers/scsi/advansys.c2
-rw-r--r--drivers/scsi/aic7xxx_old/aic7xxx.seq2
-rw-r--r--drivers/scsi/aic94xx/aic94xx_seq.c4
-rw-r--r--drivers/scsi/bfa/bfa_core.c2
-rw-r--r--drivers/scsi/bfa/bfa_fcs.c10
-rw-r--r--drivers/scsi/bfa/bfa_ioim.c2
-rw-r--r--drivers/scsi/bfa/vport.c2
-rw-r--r--drivers/scsi/fcoe/fcoe.c4
-rw-r--r--drivers/scsi/libfc/fc_exch.c4
-rw-r--r--drivers/scsi/libfc/fc_lport.c6
-rw-r--r--drivers/scsi/libfc/fc_rport.c2
-rw-r--r--drivers/scsi/mpt2sas/mpt2sas_base.h2
-rw-r--r--drivers/scsi/mpt2sas/mpt2sas_scsih.c4
-rw-r--r--drivers/scsi/pm8001/pm8001_hwi.c4
-rw-r--r--drivers/scsi/qla2xxx/qla_iocb.c2
-rw-r--r--drivers/scsi/qla2xxx/qla_nx.h2
-rw-r--r--drivers/scsi/qla4xxx/ql4_init.c2
-rw-r--r--drivers/scsi/scsi_transport_fc.c2
-rw-r--r--drivers/serial/68360serial.c6
-rw-r--r--drivers/serial/cpm_uart/cpm_uart_core.c2
-rw-r--r--drivers/serial/nwpserial.c2
-rw-r--r--drivers/serial/sn_console.c6
-rw-r--r--drivers/staging/winbond/wbusb.c2
-rw-r--r--drivers/usb/class/cdc-acm.c2
-rw-r--r--drivers/usb/class/usblp.c2
-rw-r--r--drivers/usb/host/fhci-sched.c2
-rw-r--r--drivers/usb/serial/kl5kusb105.c2
-rw-r--r--drivers/usb/wusbcore/wusbhc.c2
-rw-r--r--drivers/uwb/wlp/wss-lc.c2
-rw-r--r--drivers/video/backlight/locomolcd.c4
-rw-r--r--drivers/video/carminefb.c2
-rw-r--r--drivers/video/tgafb.c2
-rw-r--r--fs/Kconfig2
-rw-r--r--fs/befs/linuxvfs.c2
-rw-r--r--fs/compat.c2
-rw-r--r--fs/compat_ioctl.c2
-rw-r--r--fs/ecryptfs/crypto.c2
-rw-r--r--fs/ext4/extents.c2
-rw-r--r--fs/ext4/mballoc.c2
-rw-r--r--fs/ext4/super.c2
-rw-r--r--fs/freevxfs/vxfs_super.c2
-rw-r--r--fs/ncpfs/inode.c4
-rw-r--r--fs/ocfs2/dlm/dlmdebug.c6
-rw-r--r--fs/ocfs2/dlmfs/dlmfs.c3
-rw-r--r--fs/ocfs2/dlmglue.c4
-rw-r--r--fs/ocfs2/super.c2
-rw-r--r--fs/reiserfs/inode.c2
-rw-r--r--include/linux/fscache.h3
-rw-r--r--include/linux/ide.h2
-rw-r--r--include/linux/if_link.h2
-rw-r--r--include/linux/jffs2.h2
-rw-r--r--include/linux/kernel.h6
-rw-r--r--include/linux/lru_cache.h2
-rw-r--r--include/linux/netdevice.h2
-rw-r--r--include/linux/reiserfs_fs.h2
-rw-r--r--include/linux/types.h5
-rw-r--r--kernel/cpuset.c2
-rw-r--r--kernel/debug/debug_core.c2
-rw-r--r--kernel/debug/gdbstub.c2
-rw-r--r--kernel/power/hibernate.c2
-rw-r--r--kernel/power/snapshot.c2
-rw-r--r--kernel/power/swap.c2
-rw-r--r--kernel/time/tick-broadcast.c2
-rw-r--r--lib/Kconfig.debug2
-rw-r--r--lib/devres.c2
-rw-r--r--lib/random32.c2
-rw-r--r--net/ipv6/netfilter/nf_conntrack_reasm.c2
-rw-r--r--net/netfilter/ipvs/ip_vs_lblc.c2
-rw-r--r--net/netfilter/ipvs/ip_vs_lblcr.c2
-rw-r--r--net/sctp/associola.c2
-rw-r--r--net/sctp/protocol.c2
-rw-r--r--security/smack/smack_lsm.c2
-rw-r--r--sound/drivers/Kconfig2
-rw-r--r--sound/pci/trident/trident_main.c2
-rw-r--r--sound/soc/fsl/mpc8610_hpcd.c2
-rw-r--r--sound/soc/imx/imx-ssi.c2
-rw-r--r--sound/soc/soc-core.c2
-rw-r--r--sound/usb/pcm.c2
172 files changed, 223 insertions, 244 deletions
diff --git a/Documentation/Changes b/Documentation/Changes
index eca9f6e6fbe6..4fb88f15f2ef 100644
--- a/Documentation/Changes
+++ b/Documentation/Changes
@@ -331,7 +331,7 @@ o <ftp://ftp.kernel.org/pub/linux/kernel/people/rusty/modules/>
331 331
332Mkinitrd 332Mkinitrd
333-------- 333--------
334o <ftp://rawhide.redhat.com/pub/rawhide/SRPMS/SRPMS/> 334o <https://code.launchpad.net/initrd-tools/main>
335 335
336E2fsprogs 336E2fsprogs
337--------- 337---------
@@ -343,11 +343,11 @@ o <http://jfs.sourceforge.net/>
343 343
344Reiserfsprogs 344Reiserfsprogs
345------------- 345-------------
346o <http://www.namesys.com/pub/reiserfsprogs/reiserfsprogs-3.6.3.tar.gz> 346o <http://www.kernel.org/pub/linux/utils/fs/reiserfs/>
347 347
348Xfsprogs 348Xfsprogs
349-------- 349--------
350o <ftp://oss.sgi.com/projects/xfs/download/> 350o <ftp://oss.sgi.com/projects/xfs/>
351 351
352Pcmciautils 352Pcmciautils
353----------- 353-----------
@@ -387,18 +387,18 @@ o <http://sourceforge.net/projects/fuse>
387 387
388mcelog 388mcelog
389------ 389------
390o <ftp://ftp.kernel.org/pub/linux/utils/cpu/mce/mcelog/> 390o <ftp://ftp.kernel.org/pub/linux/utils/cpu/mce/>
391 391
392Networking 392Networking
393********** 393**********
394 394
395PPP 395PPP
396--- 396---
397o <ftp://ftp.samba.org/pub/ppp/ppp-2.4.0.tar.gz> 397o <ftp://ftp.samba.org/pub/ppp/>
398 398
399Isdn4k-utils 399Isdn4k-utils
400------------ 400------------
401o <ftp://ftp.isdn4linux.de/pub/isdn4linux/utils/isdn4k-utils.v3.1pre1.tar.gz> 401o <ftp://ftp.isdn4linux.de/pub/isdn4linux/utils/>
402 402
403NFS-utils 403NFS-utils
404--------- 404---------
diff --git a/Documentation/PCI/pci.txt b/Documentation/PCI/pci.txt
index 7f6de6ea5b47..6148d4080f88 100644
--- a/Documentation/PCI/pci.txt
+++ b/Documentation/PCI/pci.txt
@@ -581,7 +581,7 @@ to be handled by platform and generic code, not individual drivers.
5818. Vendor and device identifications 5818. Vendor and device identifications
582~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 582~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
583 583
584One is not not required to add new device ids to include/linux/pci_ids.h. 584One is not required to add new device ids to include/linux/pci_ids.h.
585Please add PCI_VENDOR_ID_xxx for vendors and a hex constant for device ids. 585Please add PCI_VENDOR_ID_xxx for vendors and a hex constant for device ids.
586 586
587PCI_VENDOR_ID_xxx constants are re-used. The device ids are arbitrary 587PCI_VENDOR_ID_xxx constants are re-used. The device ids are arbitrary
diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt
index 1571c0c83dba..40a9c3239319 100644
--- a/Documentation/feature-removal-schedule.txt
+++ b/Documentation/feature-removal-schedule.txt
@@ -93,7 +93,7 @@ Why: Broken design for runtime control over driver power states, confusing
93 inputs. This framework was never widely used, and most attempts to 93 inputs. This framework was never widely used, and most attempts to
94 use it were broken. Drivers should instead be exposing domain-specific 94 use it were broken. Drivers should instead be exposing domain-specific
95 interfaces either to kernel or to userspace. 95 interfaces either to kernel or to userspace.
96Who: Pavel Machek <pavel@suse.cz> 96Who: Pavel Machek <pavel@ucw.cz>
97 97
98--------------------------- 98---------------------------
99 99
diff --git a/Documentation/hwmon/hpfall.c b/Documentation/hwmon/hpfall.c
index 681ec22b9d0e..a4a8fc5d05d4 100644
--- a/Documentation/hwmon/hpfall.c
+++ b/Documentation/hwmon/hpfall.c
@@ -1,7 +1,7 @@
1/* Disk protection for HP machines. 1/* Disk protection for HP machines.
2 * 2 *
3 * Copyright 2008 Eric Piel 3 * Copyright 2008 Eric Piel
4 * Copyright 2009 Pavel Machek <pavel@suse.cz> 4 * Copyright 2009 Pavel Machek <pavel@ucw.cz>
5 * 5 *
6 * GPLv2. 6 * GPLv2.
7 */ 7 */
diff --git a/Documentation/power/tricks.txt b/Documentation/power/tricks.txt
index 3b26bb502a4a..a1b8f7249f4c 100644
--- a/Documentation/power/tricks.txt
+++ b/Documentation/power/tricks.txt
@@ -1,6 +1,6 @@
1 swsusp/S3 tricks 1 swsusp/S3 tricks
2 ~~~~~~~~~~~~~~~~ 2 ~~~~~~~~~~~~~~~~
3Pavel Machek <pavel@suse.cz> 3Pavel Machek <pavel@ucw.cz>
4 4
5If you want to trick swsusp/S3 into working, you might want to try: 5If you want to trick swsusp/S3 into working, you might want to try:
6 6
diff --git a/Documentation/rt-mutex-design.txt b/Documentation/rt-mutex-design.txt
index 8df0b782c4d7..33ed8007a845 100644
--- a/Documentation/rt-mutex-design.txt
+++ b/Documentation/rt-mutex-design.txt
@@ -364,7 +364,7 @@ process this is rather easy to know what needs to be adjusted.
364 364
365The functions implementing the task adjustments are rt_mutex_adjust_prio, 365The functions implementing the task adjustments are rt_mutex_adjust_prio,
366__rt_mutex_adjust_prio (same as the former, but expects the task pi_lock 366__rt_mutex_adjust_prio (same as the former, but expects the task pi_lock
367to already be taken), rt_mutex_get_prio, and rt_mutex_setprio. 367to already be taken), rt_mutex_getprio, and rt_mutex_setprio.
368 368
369rt_mutex_getprio and rt_mutex_setprio are only used in __rt_mutex_adjust_prio. 369rt_mutex_getprio and rt_mutex_setprio are only used in __rt_mutex_adjust_prio.
370 370
diff --git a/Documentation/scsi/ChangeLog.lpfc b/Documentation/scsi/ChangeLog.lpfc
index e759e92e286d..337c924cc81f 100644
--- a/Documentation/scsi/ChangeLog.lpfc
+++ b/Documentation/scsi/ChangeLog.lpfc
@@ -807,7 +807,7 @@ Changes from 20040908 to 20040920
807 lpfc_disc_done/lpfc_do_dpc cleanup - lpfc_disc_done can return 807 lpfc_disc_done/lpfc_do_dpc cleanup - lpfc_disc_done can return
808 void - move lpfc_do_dpc and lpfc_disc_done to lpfc_hbadisc.c - 808 void - move lpfc_do_dpc and lpfc_disc_done to lpfc_hbadisc.c -
809 remove checking of list emptiness before calling lpfc_disc_done, 809 remove checking of list emptiness before calling lpfc_disc_done,
810 it handles the emtpy list case just fine and the additional 810 it handles the empty list case just fine and the additional
811 instructions cost less then the bustlocked spinlock operations. 811 instructions cost less then the bustlocked spinlock operations.
812 * Integrated patch from Christoph Hellwig: This adds a new 64bit 812 * Integrated patch from Christoph Hellwig: This adds a new 64bit
813 counter instead, brd_no isn't reused anymore. Also some tiny 813 counter instead, brd_no isn't reused anymore. Also some tiny
diff --git a/Documentation/sparse.txt b/Documentation/sparse.txt
index 9b659c79a547..4909d4116356 100644
--- a/Documentation/sparse.txt
+++ b/Documentation/sparse.txt
@@ -1,5 +1,5 @@
1Copyright 2004 Linus Torvalds 1Copyright 2004 Linus Torvalds
2Copyright 2004 Pavel Machek <pavel@suse.cz> 2Copyright 2004 Pavel Machek <pavel@ucw.cz>
3Copyright 2006 Bob Copeland <me@bobcopeland.com> 3Copyright 2006 Bob Copeland <me@bobcopeland.com>
4 4
5Using sparse for typechecking 5Using sparse for typechecking
diff --git a/Documentation/sysctl/vm.txt b/Documentation/sysctl/vm.txt
index 5fdbb612aeb8..82b2da18c45d 100644
--- a/Documentation/sysctl/vm.txt
+++ b/Documentation/sysctl/vm.txt
@@ -196,7 +196,7 @@ controlled by this knob are discussed in Documentation/laptops/laptop-mode.txt.
196 196
197legacy_va_layout 197legacy_va_layout
198 198
199If non-zero, this sysctl disables the new 32-bit mmap mmap layout - the kernel 199If non-zero, this sysctl disables the new 32-bit mmap layout - the kernel
200will use the legacy (2.4) layout for all processes. 200will use the legacy (2.4) layout for all processes.
201 201
202============================================================== 202==============================================================
diff --git a/Documentation/zh_CN/sparse.txt b/Documentation/zh_CN/sparse.txt
index 75992a603ae3..cc144e581515 100644
--- a/Documentation/zh_CN/sparse.txt
+++ b/Documentation/zh_CN/sparse.txt
@@ -22,7 +22,7 @@ Documentation/sparse.txt 的中文翻译
22--------------------------------------------------------------------- 22---------------------------------------------------------------------
23 23
24Copyright 2004 Linus Torvalds 24Copyright 2004 Linus Torvalds
25Copyright 2004 Pavel Machek <pavel@suse.cz> 25Copyright 2004 Pavel Machek <pavel@ucw.cz>
26Copyright 2006 Bob Copeland <me@bobcopeland.com> 26Copyright 2006 Bob Copeland <me@bobcopeland.com>
27 27
28使用 sparse 工具做类型检查 28使用 sparse 工具做类型检查
diff --git a/arch/arm/mach-imx/dma-v1.c b/arch/arm/mach-imx/dma-v1.c
index fd1d9197d06e..3e8c47c63bac 100644
--- a/arch/arm/mach-imx/dma-v1.c
+++ b/arch/arm/mach-imx/dma-v1.c
@@ -310,7 +310,7 @@ imx_dma_setup_sg(int channel,
310 imxdma->resbytes = dma_length; 310 imxdma->resbytes = dma_length;
311 311
312 if (!sg || !sgcount) { 312 if (!sg || !sgcount) {
313 printk(KERN_ERR "imxdma%d: imx_dma_setup_sg epty sg list\n", 313 printk(KERN_ERR "imxdma%d: imx_dma_setup_sg empty sg list\n",
314 channel); 314 channel);
315 return -EINVAL; 315 return -EINVAL;
316 } 316 }
@@ -760,7 +760,6 @@ EXPORT_SYMBOL(imx_dma_free);
760 * @name: the driver/caller own non-%NULL identification 760 * @name: the driver/caller own non-%NULL identification
761 * 761 *
762 * This function tries to find a free channel in the specified priority group 762 * This function tries to find a free channel in the specified priority group
763 * This function tries to find a free channel in the specified priority group
764 * if the priority cannot be achieved it tries to look for free channel 763 * if the priority cannot be achieved it tries to look for free channel
765 * in the higher and then even lower priority groups. 764 * in the higher and then even lower priority groups.
766 * 765 *
diff --git a/arch/arm/mach-msm/acpuclock-arm11.c b/arch/arm/mach-msm/acpuclock-arm11.c
index af5e85b91d02..f060a3959a75 100644
--- a/arch/arm/mach-msm/acpuclock-arm11.c
+++ b/arch/arm/mach-msm/acpuclock-arm11.c
@@ -98,7 +98,7 @@ struct clkctl_acpu_speed {
98 98
99/* 99/*
100 * ACPU speed table. Complete table is shown but certain speeds are commented 100 * ACPU speed table. Complete table is shown but certain speeds are commented
101 * out to optimized speed switching. Initalize loops_per_jiffy to 0. 101 * out to optimized speed switching. Initialize loops_per_jiffy to 0.
102 * 102 *
103 * Table stepping up/down is optimized for 256mhz jumps while staying on the 103 * Table stepping up/down is optimized for 256mhz jumps while staying on the
104 * same PLL. 104 * same PLL.
@@ -494,7 +494,7 @@ uint32_t acpuclk_get_switch_time(void)
494 * Clock driver initialization 494 * Clock driver initialization
495 *---------------------------------------------------------------------------*/ 495 *---------------------------------------------------------------------------*/
496 496
497/* Initalize the lpj field in the acpu_freq_tbl. */ 497/* Initialize the lpj field in the acpu_freq_tbl. */
498static void __init lpj_init(void) 498static void __init lpj_init(void)
499{ 499{
500 int i; 500 int i;
diff --git a/arch/arm/mach-omap2/dpll3xxx.c b/arch/arm/mach-omap2/dpll3xxx.c
index b32ccd954a1b..ed8d330522f1 100644
--- a/arch/arm/mach-omap2/dpll3xxx.c
+++ b/arch/arm/mach-omap2/dpll3xxx.c
@@ -463,7 +463,7 @@ int omap3_noncore_dpll_set_rate(struct clk *clk, unsigned long rate)
463 } 463 }
464 if (!ret) { 464 if (!ret) {
465 /* 465 /*
466 * Switch the parent clock in the heirarchy, and make sure 466 * Switch the parent clock in the hierarchy, and make sure
467 * that the new parent's usecount is correct. Note: we 467 * that the new parent's usecount is correct. Note: we
468 * enable the new parent before disabling the old to avoid 468 * enable the new parent before disabling the old to avoid
469 * any unnecessary hardware disable->enable transitions. 469 * any unnecessary hardware disable->enable transitions.
diff --git a/arch/arm/mach-omap2/sleep34xx.S b/arch/arm/mach-omap2/sleep34xx.S
index d522cd70bf53..ba53191ae4c5 100644
--- a/arch/arm/mach-omap2/sleep34xx.S
+++ b/arch/arm/mach-omap2/sleep34xx.S
@@ -60,7 +60,7 @@
60#define SDRC_DLLA_CTRL_V OMAP34XX_SDRC_REGADDR(SDRC_DLLA_CTRL) 60#define SDRC_DLLA_CTRL_V OMAP34XX_SDRC_REGADDR(SDRC_DLLA_CTRL)
61 61
62 .text 62 .text
63/* Function to aquire the semaphore in scratchpad */ 63/* Function to acquire the semaphore in scratchpad */
64ENTRY(lock_scratchpad_sem) 64ENTRY(lock_scratchpad_sem)
65 stmfd sp!, {lr} @ save registers on stack 65 stmfd sp!, {lr} @ save registers on stack
66wait_sem: 66wait_sem:
diff --git a/arch/arm/mach-sa1100/collie.c b/arch/arm/mach-sa1100/collie.c
index 5d5f330c5d94..16e682d5dbb7 100644
--- a/arch/arm/mach-sa1100/collie.c
+++ b/arch/arm/mach-sa1100/collie.c
@@ -11,7 +11,7 @@
11 * published by the Free Software Foundation. 11 * published by the Free Software Foundation.
12 * 12 *
13 * ChangeLog: 13 * ChangeLog:
14 * 2006 Pavel Machek <pavel@suse.cz> 14 * 2006 Pavel Machek <pavel@ucw.cz>
15 * 03-06-2004 John Lenz <lenz@cs.wisc.edu> 15 * 03-06-2004 John Lenz <lenz@cs.wisc.edu>
16 * 06-04-2002 Chris Larson <kergoth@digitalnemesis.net> 16 * 06-04-2002 Chris Larson <kergoth@digitalnemesis.net>
17 * 04-16-2001 Lineo Japan,Inc. ... 17 * 04-16-2001 Lineo Japan,Inc. ...
diff --git a/arch/arm/mach-u300/core.c b/arch/arm/mach-u300/core.c
index 5f34eb674d68..653b3e0ab7ba 100644
--- a/arch/arm/mach-u300/core.c
+++ b/arch/arm/mach-u300/core.c
@@ -1561,13 +1561,6 @@ static void __init u300_init_check_chip(void)
1561 printk(KERN_INFO "Initializing U300 system on %s baseband chip " \ 1561 printk(KERN_INFO "Initializing U300 system on %s baseband chip " \
1562 "(chip ID 0x%04x)\n", chipname, val); 1562 "(chip ID 0x%04x)\n", chipname, val);
1563 1563
1564#ifdef CONFIG_MACH_U300_BS26
1565 if ((val & 0xFF00U) != 0xc800) {
1566 printk(KERN_ERR "Platform configured for BS25/BS26 " \
1567 "with DB3150 but %s detected, expect problems!",
1568 chipname);
1569 }
1570#endif
1571#ifdef CONFIG_MACH_U300_BS330 1564#ifdef CONFIG_MACH_U300_BS330
1572 if ((val & 0xFF00U) != 0xd800) { 1565 if ((val & 0xFF00U) != 0xd800) {
1573 printk(KERN_ERR "Platform configured for BS330 " \ 1566 printk(KERN_ERR "Platform configured for BS330 " \
diff --git a/arch/arm/mach-u300/gpio.c b/arch/arm/mach-u300/gpio.c
index 5f61fd45a0c8..d92790140fe5 100644
--- a/arch/arm/mach-u300/gpio.c
+++ b/arch/arm/mach-u300/gpio.c
@@ -523,7 +523,7 @@ static void gpio_set_initial_values(void)
523 523
524 /* 524 /*
525 * Put all pins that are set to either 'GPIO_OUT' or 'GPIO_NOT_USED' 525 * Put all pins that are set to either 'GPIO_OUT' or 'GPIO_NOT_USED'
526 * to output and 'GPIO_IN' to input for each port. And initalize 526 * to output and 'GPIO_IN' to input for each port. And initialize
527 * default value on outputs. 527 * default value on outputs.
528 */ 528 */
529 for (i = 0; i < U300_GPIO_NUM_PORTS; i++) { 529 for (i = 0; i < U300_GPIO_NUM_PORTS; i++) {
diff --git a/arch/arm/plat-s3c24xx/clock.c b/arch/arm/plat-s3c24xx/clock.c
index 8474d05274bd..931d26d1a54b 100644
--- a/arch/arm/plat-s3c24xx/clock.c
+++ b/arch/arm/plat-s3c24xx/clock.c
@@ -43,7 +43,7 @@
43#include <plat/cpu.h> 43#include <plat/cpu.h>
44#include <plat/pll.h> 44#include <plat/pll.h>
45 45
46/* initalise all the clocks */ 46/* initialise all the clocks */
47 47
48void __init_or_cpufreq s3c24xx_setup_clocks(unsigned long fclk, 48void __init_or_cpufreq s3c24xx_setup_clocks(unsigned long fclk,
49 unsigned long hclk, 49 unsigned long hclk,
diff --git a/arch/arm/plat-samsung/clock.c b/arch/arm/plat-samsung/clock.c
index 8bf79f3efdfb..90a20512d68d 100644
--- a/arch/arm/plat-samsung/clock.c
+++ b/arch/arm/plat-samsung/clock.c
@@ -391,7 +391,7 @@ void __init s3c_disable_clocks(struct clk *clkp, int nr_clks)
391 (clkp->enable)(clkp, 0); 391 (clkp->enable)(clkp, 0);
392} 392}
393 393
394/* initalise all the clocks */ 394/* initialise all the clocks */
395 395
396int __init s3c24xx_register_baseclocks(unsigned long xtal) 396int __init s3c24xx_register_baseclocks(unsigned long xtal)
397{ 397{
diff --git a/arch/arm/plat-spear/padmux.c b/arch/arm/plat-spear/padmux.c
index d2aab3adcdeb..555eec6dc1cb 100644
--- a/arch/arm/plat-spear/padmux.c
+++ b/arch/arm/plat-spear/padmux.c
@@ -66,7 +66,7 @@ static int pmx_mode_set(struct pmx_mode *mode)
66 * If peripheral is not supported by current mode then request is rejected. 66 * If peripheral is not supported by current mode then request is rejected.
67 * Conflicts between peripherals are not handled and peripherals will be 67 * Conflicts between peripherals are not handled and peripherals will be
68 * enabled in the order they are present in pmx_dev array. 68 * enabled in the order they are present in pmx_dev array.
69 * In case of conflicts last peripheral enalbed will be present. 69 * In case of conflicts last peripheral enabled will be present.
70 * Returns -ve on Err otherwise 0 70 * Returns -ve on Err otherwise 0
71 */ 71 */
72static int pmx_devs_enable(struct pmx_dev **devs, u8 count) 72static int pmx_devs_enable(struct pmx_dev **devs, u8 count)
diff --git a/arch/cris/arch-v32/mm/intmem.c b/arch/cris/arch-v32/mm/intmem.c
index 9e8b69cdf19e..1b17d92cef8e 100644
--- a/arch/cris/arch-v32/mm/intmem.c
+++ b/arch/cris/arch-v32/mm/intmem.c
@@ -33,8 +33,8 @@ static void crisv32_intmem_init(void)
33{ 33{
34 static int initiated = 0; 34 static int initiated = 0;
35 if (!initiated) { 35 if (!initiated) {
36 struct intmem_allocation* alloc = 36 struct intmem_allocation* alloc;
37 (struct intmem_allocation*)kmalloc(sizeof *alloc, GFP_KERNEL); 37 alloc = kmalloc(sizeof *alloc, GFP_KERNEL);
38 INIT_LIST_HEAD(&intmem_allocations); 38 INIT_LIST_HEAD(&intmem_allocations);
39 intmem_virtual = ioremap(MEM_INTMEM_START + RESERVED_SIZE, 39 intmem_virtual = ioremap(MEM_INTMEM_START + RESERVED_SIZE,
40 MEM_INTMEM_SIZE - RESERVED_SIZE); 40 MEM_INTMEM_SIZE - RESERVED_SIZE);
@@ -62,9 +62,8 @@ void* crisv32_intmem_alloc(unsigned size, unsigned align)
62 if (allocation->status == STATUS_FREE && 62 if (allocation->status == STATUS_FREE &&
63 allocation->size >= size + alignment) { 63 allocation->size >= size + alignment) {
64 if (allocation->size > size + alignment) { 64 if (allocation->size > size + alignment) {
65 struct intmem_allocation* alloc = 65 struct intmem_allocation* alloc;
66 (struct intmem_allocation*) 66 alloc = kmalloc(sizeof *alloc, GFP_ATOMIC);
67 kmalloc(sizeof *alloc, GFP_ATOMIC);
68 alloc->status = STATUS_FREE; 67 alloc->status = STATUS_FREE;
69 alloc->size = allocation->size - size - 68 alloc->size = allocation->size - size -
70 alignment; 69 alignment;
@@ -74,9 +73,7 @@ void* crisv32_intmem_alloc(unsigned size, unsigned align)
74 73
75 if (alignment) { 74 if (alignment) {
76 struct intmem_allocation *tmp; 75 struct intmem_allocation *tmp;
77 tmp = (struct intmem_allocation *) 76 tmp = kmalloc(sizeof *tmp, GFP_ATOMIC);
78 kmalloc(sizeof *tmp,
79 GFP_ATOMIC);
80 tmp->offset = allocation->offset; 77 tmp->offset = allocation->offset;
81 tmp->size = alignment; 78 tmp->size = alignment;
82 tmp->status = STATUS_FREE; 79 tmp->status = STATUS_FREE;
diff --git a/arch/h8300/kernel/timer/itu.c b/arch/h8300/kernel/timer/itu.c
index 4883ba7103a8..a2ae5e952137 100644
--- a/arch/h8300/kernel/timer/itu.c
+++ b/arch/h8300/kernel/timer/itu.c
@@ -73,7 +73,7 @@ void __init h8300_timer_setup(void)
73 73
74 setup_irq(ITUIRQ, &itu_irq); 74 setup_irq(ITUIRQ, &itu_irq);
75 75
76 /* initalize timer */ 76 /* initialize timer */
77 ctrl_outb(0, TSTR); 77 ctrl_outb(0, TSTR);
78 ctrl_outb(CCLR0 | div, ITUBASE + TCR); 78 ctrl_outb(CCLR0 | div, ITUBASE + TCR);
79 ctrl_outb(0x01, ITUBASE + TIER); 79 ctrl_outb(0x01, ITUBASE + TIER);
diff --git a/arch/h8300/kernel/timer/timer16.c b/arch/h8300/kernel/timer/timer16.c
index 042dbb53f3fb..ae0d38161139 100644
--- a/arch/h8300/kernel/timer/timer16.c
+++ b/arch/h8300/kernel/timer/timer16.c
@@ -68,7 +68,7 @@ void __init h8300_timer_setup(void)
68 68
69 setup_irq(_16IRQ, &timer16_irq); 69 setup_irq(_16IRQ, &timer16_irq);
70 70
71 /* initalize timer */ 71 /* initialize timer */
72 ctrl_outb(0, TSTR); 72 ctrl_outb(0, TSTR);
73 ctrl_outb(CCLR0 | div, _16BASE + TCR); 73 ctrl_outb(CCLR0 | div, _16BASE + TCR);
74 ctrl_outw(cnt, _16BASE + GRA); 74 ctrl_outw(cnt, _16BASE + GRA);
diff --git a/arch/h8300/kernel/timer/timer8.c b/arch/h8300/kernel/timer/timer8.c
index 38be0cabef0d..3946c0fa8374 100644
--- a/arch/h8300/kernel/timer/timer8.c
+++ b/arch/h8300/kernel/timer/timer8.c
@@ -94,7 +94,7 @@ void __init h8300_timer_setup(void)
94 ctrl_bclr(0, MSTPCRL) 94 ctrl_bclr(0, MSTPCRL)
95#endif 95#endif
96 96
97 /* initalize timer */ 97 /* initialize timer */
98 ctrl_outw(cnt, _8BASE + TCORA); 98 ctrl_outw(cnt, _8BASE + TCORA);
99 ctrl_outw(0x0000, _8BASE + _8TCSR); 99 ctrl_outw(0x0000, _8BASE + _8TCSR);
100 ctrl_outw((CMIEA|CCLR_CMA|CKS2) << 8 | div, 100 ctrl_outw((CMIEA|CCLR_CMA|CKS2) << 8 | div,
diff --git a/arch/ia64/kvm/kvm-ia64.c b/arch/ia64/kvm/kvm-ia64.c
index 21b701374f72..9b109f25e49c 100644
--- a/arch/ia64/kvm/kvm-ia64.c
+++ b/arch/ia64/kvm/kvm-ia64.c
@@ -1237,7 +1237,7 @@ int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu)
1237 p_ctx->cr[2] = (unsigned long)kvm_vmm_info->vmm_ivt; 1237 p_ctx->cr[2] = (unsigned long)kvm_vmm_info->vmm_ivt;
1238 p_ctx->cr[8] = 0x3c; 1238 p_ctx->cr[8] = 0x3c;
1239 1239
1240 /*Initilize region register*/ 1240 /*Initialize region register*/
1241 p_ctx->rr[0] = 0x30; 1241 p_ctx->rr[0] = 0x30;
1242 p_ctx->rr[1] = 0x30; 1242 p_ctx->rr[1] = 0x30;
1243 p_ctx->rr[2] = 0x30; 1243 p_ctx->rr[2] = 0x30;
@@ -1246,7 +1246,7 @@ int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu)
1246 p_ctx->rr[5] = 0x30; 1246 p_ctx->rr[5] = 0x30;
1247 p_ctx->rr[7] = 0x30; 1247 p_ctx->rr[7] = 0x30;
1248 1248
1249 /*Initilize branch register 0*/ 1249 /*Initialize branch register 0*/
1250 p_ctx->br[0] = *(unsigned long *)kvm_vmm_info->vmm_entry; 1250 p_ctx->br[0] = *(unsigned long *)kvm_vmm_info->vmm_entry;
1251 1251
1252 vcpu->arch.vmm_rr = kvm->arch.vmm_init_rr; 1252 vcpu->arch.vmm_rr = kvm->arch.vmm_init_rr;
@@ -1707,7 +1707,7 @@ static int kvm_relocate_vmm(struct kvm_vmm_info *vmm_info,
1707 BUG_ON(!module); 1707 BUG_ON(!module);
1708 1708
1709 if (!kvm_vmm_base) { 1709 if (!kvm_vmm_base) {
1710 printk("kvm: kvm area hasn't been initilized yet!!\n"); 1710 printk("kvm: kvm area hasn't been initialized yet!!\n");
1711 return -EFAULT; 1711 return -EFAULT;
1712 } 1712 }
1713 1713
diff --git a/arch/ia64/sn/kernel/setup.c b/arch/ia64/sn/kernel/setup.c
index d00dfc180021..dbc4cbecb5ed 100644
--- a/arch/ia64/sn/kernel/setup.c
+++ b/arch/ia64/sn/kernel/setup.c
@@ -507,7 +507,7 @@ static void __init sn_init_pdas(char **cmdline_p)
507 cnodeid_t cnode; 507 cnodeid_t cnode;
508 508
509 /* 509 /*
510 * Allocate & initalize the nodepda for each node. 510 * Allocate & initialize the nodepda for each node.
511 */ 511 */
512 for_each_online_node(cnode) { 512 for_each_online_node(cnode) {
513 nodepdaindr[cnode] = 513 nodepdaindr[cnode] =
diff --git a/arch/microblaze/Makefile b/arch/microblaze/Makefile
index 72f6e8583746..592c7079de88 100644
--- a/arch/microblaze/Makefile
+++ b/arch/microblaze/Makefile
@@ -25,7 +25,7 @@ ifeq (,$(findstring spartan2,$(CONFIG_XILINX_MICROBLAZE0_FAMILY)))
25 ifeq ($(CPU_MAJOR),3) 25 ifeq ($(CPU_MAJOR),3)
26 CPUFLAGS-1 += -mno-xl-soft-mul 26 CPUFLAGS-1 += -mno-xl-soft-mul
27 else 27 else
28 # USE_HW_MUL can be 0, 1, or 2, defining a heirarchy of HW Mul support. 28 # USE_HW_MUL can be 0, 1, or 2, defining a hierarchy of HW Mul support.
29 CPUFLAGS-$(subst 1,,$(CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL)) += -mxl-multiply-high 29 CPUFLAGS-$(subst 1,,$(CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL)) += -mxl-multiply-high
30 CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL) += -mno-xl-soft-mul 30 CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL) += -mno-xl-soft-mul
31 endif 31 endif
diff --git a/arch/powerpc/kernel/suspend.c b/arch/powerpc/kernel/suspend.c
index 6fc6328dc626..0167d53da30c 100644
--- a/arch/powerpc/kernel/suspend.c
+++ b/arch/powerpc/kernel/suspend.c
@@ -3,7 +3,7 @@
3 * 3 *
4 * Distribute under GPLv2 4 * Distribute under GPLv2
5 * 5 *
6 * Copyright (c) 2002 Pavel Machek <pavel@suse.cz> 6 * Copyright (c) 2002 Pavel Machek <pavel@ucw.cz>
7 * Copyright (c) 2001 Patrick Mochel <mochel@osdl.org> 7 * Copyright (c) 2001 Patrick Mochel <mochel@osdl.org>
8 */ 8 */
9 9
diff --git a/arch/powerpc/platforms/ps3/htab.c b/arch/powerpc/platforms/ps3/htab.c
index 2c0ed87f2024..3124cf791ebb 100644
--- a/arch/powerpc/platforms/ps3/htab.c
+++ b/arch/powerpc/platforms/ps3/htab.c
@@ -136,7 +136,7 @@ static long ps3_hpte_updatepp(unsigned long slot, unsigned long newpp,
136 * As lv1_read_htab_entries() does not give us the RPN, we can 136 * As lv1_read_htab_entries() does not give us the RPN, we can
137 * not synthesize the new hpte_r value here, and therefore can 137 * not synthesize the new hpte_r value here, and therefore can
138 * not update the hpte with lv1_insert_htab_entry(), so we 138 * not update the hpte with lv1_insert_htab_entry(), so we
139 * insted invalidate it and ask the caller to update it via 139 * instead invalidate it and ask the caller to update it via
140 * ps3_hpte_insert() by returning a -1 value. 140 * ps3_hpte_insert() by returning a -1 value.
141 */ 141 */
142 if (!HPTE_V_COMPARE(hpte_v, want_v) || !(hpte_v & HPTE_V_VALID)) { 142 if (!HPTE_V_COMPARE(hpte_v, want_v) || !(hpte_v & HPTE_V_VALID)) {
diff --git a/arch/sh/kernel/clkdev.c b/arch/sh/kernel/clkdev.c
index defdd6e30908..befc255830a4 100644
--- a/arch/sh/kernel/clkdev.c
+++ b/arch/sh/kernel/clkdev.c
@@ -36,7 +36,7 @@ static DEFINE_MUTEX(clocks_mutex);
36 * If an entry has a device ID, it must match 36 * If an entry has a device ID, it must match
37 * If an entry has a connection ID, it must match 37 * If an entry has a connection ID, it must match
38 * Then we take the most specific entry - with the following 38 * Then we take the most specific entry - with the following
39 * order of precidence: dev+con > dev only > con only. 39 * order of precedence: dev+con > dev only > con only.
40 */ 40 */
41static struct clk *clk_find(const char *dev_id, const char *con_id) 41static struct clk *clk_find(const char *dev_id, const char *con_id)
42{ 42{
diff --git a/arch/sparc/boot/btfixupprep.c b/arch/sparc/boot/btfixupprep.c
index e7f2940bd270..da031159e2b7 100644
--- a/arch/sparc/boot/btfixupprep.c
+++ b/arch/sparc/boot/btfixupprep.c
@@ -216,7 +216,7 @@ main1:
216 switch (buffer[nbase+3]) { 216 switch (buffer[nbase+3]) {
217 case 'f': 217 case 'f':
218 if (initval) { 218 if (initval) {
219 fprintf(stderr, "Cannot use pre-initalized fixups for calls\n%s\n", buffer); 219 fprintf(stderr, "Cannot use pre-initialized fixups for calls\n%s\n", buffer);
220 exit(1); 220 exit(1);
221 } 221 }
222 if (!strcmp (sect, "__ksymtab")) { 222 if (!strcmp (sect, "__ksymtab")) {
@@ -273,7 +273,7 @@ main1:
273 break; 273 break;
274 case 'i': 274 case 'i':
275 if (initval) { 275 if (initval) {
276 fprintf(stderr, "Cannot use pre-initalized fixups for INT\n%s\n", buffer); 276 fprintf(stderr, "Cannot use pre-initialized fixups for INT\n%s\n", buffer);
277 exit(1); 277 exit(1);
278 } 278 }
279 if (strncmp (buffer + mode+9, "HI22 ", 10) && strncmp (buffer + mode+9, "LO10 ", 10)) { 279 if (strncmp (buffer + mode+9, "HI22 ", 10) && strncmp (buffer + mode+9, "LO10 ", 10)) {
diff --git a/arch/x86/kernel/acpi/sleep.c b/arch/x86/kernel/acpi/sleep.c
index fcc3c61fdecc..33cec152070d 100644
--- a/arch/x86/kernel/acpi/sleep.c
+++ b/arch/x86/kernel/acpi/sleep.c
@@ -2,7 +2,7 @@
2 * sleep.c - x86-specific ACPI sleep support. 2 * sleep.c - x86-specific ACPI sleep support.
3 * 3 *
4 * Copyright (C) 2001-2003 Patrick Mochel 4 * Copyright (C) 2001-2003 Patrick Mochel
5 * Copyright (C) 2001-2003 Pavel Machek <pavel@suse.cz> 5 * Copyright (C) 2001-2003 Pavel Machek <pavel@ucw.cz>
6 */ 6 */
7 7
8#include <linux/acpi.h> 8#include <linux/acpi.h>
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
index a96489ee6cab..980508c79082 100644
--- a/arch/x86/kernel/apic/apic.c
+++ b/arch/x86/kernel/apic/apic.c
@@ -460,7 +460,7 @@ static void lapic_timer_broadcast(const struct cpumask *mask)
460} 460}
461 461
462/* 462/*
463 * Setup the local APIC timer for this CPU. Copy the initilized values 463 * Setup the local APIC timer for this CPU. Copy the initialized values
464 * of the boot CPU and register the clock event in the framework. 464 * of the boot CPU and register the clock event in the framework.
465 */ 465 */
466static void __cpuinit setup_APIC_timer(void) 466static void __cpuinit setup_APIC_timer(void)
diff --git a/arch/x86/kernel/apm_32.c b/arch/x86/kernel/apm_32.c
index c4f9182ca3ac..4c9c67bf09b7 100644
--- a/arch/x86/kernel/apm_32.c
+++ b/arch/x86/kernel/apm_32.c
@@ -140,7 +140,7 @@
140 * is now the way life works). 140 * is now the way life works).
141 * Fix thinko in suspend() (wrong return). 141 * Fix thinko in suspend() (wrong return).
142 * Notify drivers on critical suspend. 142 * Notify drivers on critical suspend.
143 * Make kapmd absorb more idle time (Pavel Machek <pavel@suse.cz> 143 * Make kapmd absorb more idle time (Pavel Machek <pavel@ucw.cz>
144 * modified by sfr). 144 * modified by sfr).
145 * Disable interrupts while we are suspended (Andy Henroid 145 * Disable interrupts while we are suspended (Andy Henroid
146 * <andy_henroid@yahoo.com> fixed by sfr). 146 * <andy_henroid@yahoo.com> fixed by sfr).
diff --git a/arch/x86/kernel/cpu/cpufreq/powernow-k8.c b/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
index 3e90cce3dc8b..1376f4144b3f 100644
--- a/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
+++ b/arch/x86/kernel/cpu/cpufreq/powernow-k8.c
@@ -9,7 +9,7 @@
9 * Based on the powernow-k7.c module written by Dave Jones. 9 * Based on the powernow-k7.c module written by Dave Jones.
10 * (C) 2003 Dave Jones on behalf of SuSE Labs 10 * (C) 2003 Dave Jones on behalf of SuSE Labs
11 * (C) 2004 Dominik Brodowski <linux@brodo.de> 11 * (C) 2004 Dominik Brodowski <linux@brodo.de>
12 * (C) 2004 Pavel Machek <pavel@suse.cz> 12 * (C) 2004 Pavel Machek <pavel@ucw.cz>
13 * Licensed under the terms of the GNU GPL License version 2. 13 * Licensed under the terms of the GNU GPL License version 2.
14 * Based upon datasheets & sample CPUs kindly provided by AMD. 14 * Based upon datasheets & sample CPUs kindly provided by AMD.
15 * 15 *
diff --git a/arch/x86/kernel/head32.c b/arch/x86/kernel/head32.c
index b2e246037392..784360c0625c 100644
--- a/arch/x86/kernel/head32.c
+++ b/arch/x86/kernel/head32.c
@@ -20,7 +20,7 @@
20 20
21static void __init i386_default_early_setup(void) 21static void __init i386_default_early_setup(void)
22{ 22{
23 /* Initilize 32bit specific setup functions */ 23 /* Initialize 32bit specific setup functions */
24 x86_init.resources.probe_roms = probe_roms; 24 x86_init.resources.probe_roms = probe_roms;
25 x86_init.resources.reserve_resources = i386_reserve_resources; 25 x86_init.resources.reserve_resources = i386_reserve_resources;
26 x86_init.mpparse.setup_ioapic_ids = setup_ioapic_ids_from_mpc; 26 x86_init.mpparse.setup_ioapic_ids = setup_ioapic_ids_from_mpc;
diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
index ee41bba315d1..9a6674689a20 100644
--- a/arch/x86/mm/init_64.c
+++ b/arch/x86/mm/init_64.c
@@ -2,7 +2,7 @@
2 * linux/arch/x86_64/mm/init.c 2 * linux/arch/x86_64/mm/init.c
3 * 3 *
4 * Copyright (C) 1995 Linus Torvalds 4 * Copyright (C) 1995 Linus Torvalds
5 * Copyright (C) 2000 Pavel Machek <pavel@suse.cz> 5 * Copyright (C) 2000 Pavel Machek <pavel@ucw.cz>
6 * Copyright (C) 2002,2003 Andi Kleen <ak@suse.de> 6 * Copyright (C) 2002,2003 Andi Kleen <ak@suse.de>
7 */ 7 */
8 8
diff --git a/arch/x86/power/cpu.c b/arch/x86/power/cpu.c
index 1290ba54b350..e7e8c5f54956 100644
--- a/arch/x86/power/cpu.c
+++ b/arch/x86/power/cpu.c
@@ -4,7 +4,7 @@
4 * Distribute under GPLv2 4 * Distribute under GPLv2
5 * 5 *
6 * Copyright (c) 2007 Rafael J. Wysocki <rjw@sisk.pl> 6 * Copyright (c) 2007 Rafael J. Wysocki <rjw@sisk.pl>
7 * Copyright (c) 2002 Pavel Machek <pavel@suse.cz> 7 * Copyright (c) 2002 Pavel Machek <pavel@ucw.cz>
8 * Copyright (c) 2001 Patrick Mochel <mochel@osdl.org> 8 * Copyright (c) 2001 Patrick Mochel <mochel@osdl.org>
9 */ 9 */
10 10
diff --git a/arch/x86/power/hibernate_64.c b/arch/x86/power/hibernate_64.c
index d24f983ba1e5..460f314d13e5 100644
--- a/arch/x86/power/hibernate_64.c
+++ b/arch/x86/power/hibernate_64.c
@@ -4,7 +4,7 @@
4 * Distribute under GPLv2 4 * Distribute under GPLv2
5 * 5 *
6 * Copyright (c) 2007 Rafael J. Wysocki <rjw@sisk.pl> 6 * Copyright (c) 2007 Rafael J. Wysocki <rjw@sisk.pl>
7 * Copyright (c) 2002 Pavel Machek <pavel@suse.cz> 7 * Copyright (c) 2002 Pavel Machek <pavel@ucw.cz>
8 * Copyright (c) 2001 Patrick Mochel <mochel@osdl.org> 8 * Copyright (c) 2001 Patrick Mochel <mochel@osdl.org>
9 */ 9 */
10 10
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index 51ceaee98f9f..e1e7143ca1e3 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -335,7 +335,7 @@ static void cciss_map_sg_chain_block(ctlr_info_t *h, CommandList_struct *c,
335static const char *raid_label[] = { "0", "4", "1(1+0)", "5", "5+1", "ADG", 335static const char *raid_label[] = { "0", "4", "1(1+0)", "5", "5+1", "ADG",
336 "UNKNOWN" 336 "UNKNOWN"
337}; 337};
338#define RAID_UNKNOWN (sizeof(raid_label) / sizeof(raid_label[0])-1) 338#define RAID_UNKNOWN (ARRAY_SIZE(raid_label)-1)
339 339
340#ifdef CONFIG_PROC_FS 340#ifdef CONFIG_PROC_FS
341 341
diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c
index dff48701b84d..ec1711f7c5c5 100644
--- a/drivers/block/drbd/drbd_receiver.c
+++ b/drivers/block/drbd/drbd_receiver.c
@@ -1087,7 +1087,7 @@ static enum finish_epoch drbd_may_finish_epoch(struct drbd_conf *mdev,
1087 } else { 1087 } else {
1088 epoch->flags = 0; 1088 epoch->flags = 0;
1089 atomic_set(&epoch->epoch_size, 0); 1089 atomic_set(&epoch->epoch_size, 0);
1090 /* atomic_set(&epoch->active, 0); is alrady zero */ 1090 /* atomic_set(&epoch->active, 0); is already zero */
1091 if (rv == FE_STILL_LIVE) 1091 if (rv == FE_STILL_LIVE)
1092 rv = FE_RECYCLED; 1092 rv = FE_RECYCLED;
1093 } 1093 }
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c
index 218d091f3c52..16c3c8613cd3 100644
--- a/drivers/block/nbd.c
+++ b/drivers/block/nbd.c
@@ -4,7 +4,7 @@
4 * Note that you can not swap over this thing, yet. Seems to work but 4 * Note that you can not swap over this thing, yet. Seems to work but
5 * deadlocks sometimes - you can not swap over TCP in general. 5 * deadlocks sometimes - you can not swap over TCP in general.
6 * 6 *
7 * Copyright 1997-2000, 2008 Pavel Machek <pavel@suse.cz> 7 * Copyright 1997-2000, 2008 Pavel Machek <pavel@ucw.cz>
8 * Parts copyright 2001 Steven Whitehouse <steve@chygwyn.com> 8 * Parts copyright 2001 Steven Whitehouse <steve@chygwyn.com>
9 * 9 *
10 * This file is released under GPLv2 or later. 10 * This file is released under GPLv2 or later.
diff --git a/drivers/char/synclink_gt.c b/drivers/char/synclink_gt.c
index 4561ce2fba6d..334cf5c8c8b6 100644
--- a/drivers/char/synclink_gt.c
+++ b/drivers/char/synclink_gt.c
@@ -4845,7 +4845,7 @@ static int register_test(struct slgt_info *info)
4845{ 4845{
4846 static unsigned short patterns[] = 4846 static unsigned short patterns[] =
4847 {0x0000, 0xffff, 0xaaaa, 0x5555, 0x6969, 0x9696}; 4847 {0x0000, 0xffff, 0xaaaa, 0x5555, 0x6969, 0x9696};
4848 static unsigned int count = sizeof(patterns)/sizeof(patterns[0]); 4848 static unsigned int count = ARRAY_SIZE(patterns);
4849 unsigned int i; 4849 unsigned int i;
4850 int rc = 0; 4850 int rc = 0;
4851 4851
diff --git a/drivers/crypto/amcc/crypto4xx_reg_def.h b/drivers/crypto/amcc/crypto4xx_reg_def.h
index 7d4edb002619..5f5fbc0716ff 100644
--- a/drivers/crypto/amcc/crypto4xx_reg_def.h
+++ b/drivers/crypto/amcc/crypto4xx_reg_def.h
@@ -113,7 +113,7 @@
113#define CRYPTO4XX_PRNG_LFSR_H 0x00070034 113#define CRYPTO4XX_PRNG_LFSR_H 0x00070034
114 114
115/** 115/**
116 * Initilize CRYPTO ENGINE registers, and memory bases. 116 * Initialize CRYPTO ENGINE registers, and memory bases.
117 */ 117 */
118#define PPC4XX_PDR_POLL 0x3ff 118#define PPC4XX_PDR_POLL 0x3ff
119#define PPC4XX_OUTPUT_THRESHOLD 2 119#define PPC4XX_OUTPUT_THRESHOLD 2
diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c
index bd5250e8c00c..e88076022a7a 100644
--- a/drivers/dma/at_hdmac.c
+++ b/drivers/dma/at_hdmac.c
@@ -69,7 +69,7 @@ static struct at_desc *atc_first_queued(struct at_dma_chan *atchan)
69} 69}
70 70
71/** 71/**
72 * atc_alloc_descriptor - allocate and return an initilized descriptor 72 * atc_alloc_descriptor - allocate and return an initialized descriptor
73 * @chan: the channel to allocate descriptors for 73 * @chan: the channel to allocate descriptors for
74 * @gfp_flags: GFP allocation flags 74 * @gfp_flags: GFP allocation flags
75 * 75 *
diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c
index 8088b14ba5f7..f0fd6db6063c 100644
--- a/drivers/dma/fsldma.c
+++ b/drivers/dma/fsldma.c
@@ -10,7 +10,7 @@
10 * Description: 10 * Description:
11 * DMA engine driver for Freescale MPC8540 DMA controller, which is 11 * DMA engine driver for Freescale MPC8540 DMA controller, which is
12 * also fit for MPC8560, MPC8555, MPC8548, MPC8641, and etc. 12 * also fit for MPC8560, MPC8555, MPC8548, MPC8641, and etc.
13 * The support for MPC8349 DMA contorller is also added. 13 * The support for MPC8349 DMA controller is also added.
14 * 14 *
15 * This driver instructs the DMA controller to issue the PCI Read Multiple 15 * This driver instructs the DMA controller to issue the PCI Read Multiple
16 * command for PCI read operations, instead of using the default PCI Read Line 16 * command for PCI read operations, instead of using the default PCI Read Line
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
index f87bf104df7a..9585e531ac6b 100644
--- a/drivers/gpu/drm/drm_edid.c
+++ b/drivers/gpu/drm/drm_edid.c
@@ -929,13 +929,11 @@ drm_mode_do_interlace_quirk(struct drm_display_mode *mode,
929 { 1440, 576 }, 929 { 1440, 576 },
930 { 2880, 576 }, 930 { 2880, 576 },
931 }; 931 };
932 static const int n_sizes =
933 sizeof(cea_interlaced)/sizeof(cea_interlaced[0]);
934 932
935 if (!(pt->misc & DRM_EDID_PT_INTERLACED)) 933 if (!(pt->misc & DRM_EDID_PT_INTERLACED))
936 return; 934 return;
937 935
938 for (i = 0; i < n_sizes; i++) { 936 for (i = 0; i < ARRAY_SIZE(cea_interlaced); i++) {
939 if ((mode->hdisplay == cea_interlaced[i].w) && 937 if ((mode->hdisplay == cea_interlaced[i].w) &&
940 (mode->vdisplay == cea_interlaced[i].h / 2)) { 938 (mode->vdisplay == cea_interlaced[i].h / 2)) {
941 mode->vdisplay *= 2; 939 mode->vdisplay *= 2;
@@ -1375,7 +1373,6 @@ static const struct {
1375 { 1920, 1440, 60, 0 }, 1373 { 1920, 1440, 60, 0 },
1376 { 1920, 1440, 75, 0 }, 1374 { 1920, 1440, 75, 0 },
1377}; 1375};
1378static const int num_est3_modes = sizeof(est3_modes) / sizeof(est3_modes[0]);
1379 1376
1380static int 1377static int
1381drm_est3_modes(struct drm_connector *connector, struct detailed_timing *timing) 1378drm_est3_modes(struct drm_connector *connector, struct detailed_timing *timing)
@@ -1387,7 +1384,7 @@ drm_est3_modes(struct drm_connector *connector, struct detailed_timing *timing)
1387 for (i = 0; i < 6; i++) { 1384 for (i = 0; i < 6; i++) {
1388 for (j = 7; j > 0; j--) { 1385 for (j = 7; j > 0; j--) {
1389 m = (i * 8) + (7 - j); 1386 m = (i * 8) + (7 - j);
1390 if (m >= num_est3_modes) 1387 if (m >= ARRAY_SIZE(est3_modes))
1391 break; 1388 break;
1392 if (est[i] & (1 << j)) { 1389 if (est[i] & (1 << j)) {
1393 mode = drm_mode_find_dmt(connector->dev, 1390 mode = drm_mode_find_dmt(connector->dev,
diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c
index 76993ac16cc1..03c231be2273 100644
--- a/drivers/gpu/drm/i915/intel_sdvo.c
+++ b/drivers/gpu/drm/i915/intel_sdvo.c
@@ -392,13 +392,13 @@ static void intel_sdvo_debug_write(struct intel_encoder *intel_encoder, u8 cmd,
392 DRM_LOG_KMS("%02X ", ((u8 *)args)[i]); 392 DRM_LOG_KMS("%02X ", ((u8 *)args)[i]);
393 for (; i < 8; i++) 393 for (; i < 8; i++)
394 DRM_LOG_KMS(" "); 394 DRM_LOG_KMS(" ");
395 for (i = 0; i < sizeof(sdvo_cmd_names) / sizeof(sdvo_cmd_names[0]); i++) { 395 for (i = 0; i < ARRAY_SIZE(sdvo_cmd_names); i++) {
396 if (cmd == sdvo_cmd_names[i].cmd) { 396 if (cmd == sdvo_cmd_names[i].cmd) {
397 DRM_LOG_KMS("(%s)", sdvo_cmd_names[i].name); 397 DRM_LOG_KMS("(%s)", sdvo_cmd_names[i].name);
398 break; 398 break;
399 } 399 }
400 } 400 }
401 if (i == sizeof(sdvo_cmd_names)/ sizeof(sdvo_cmd_names[0])) 401 if (i == ARRAY_SIZE(sdvo_cmd_names))
402 DRM_LOG_KMS("(%02X)", cmd); 402 DRM_LOG_KMS("(%02X)", cmd);
403 DRM_LOG_KMS("\n"); 403 DRM_LOG_KMS("\n");
404} 404}
diff --git a/drivers/gpu/drm/i915/intel_tv.c b/drivers/gpu/drm/i915/intel_tv.c
index 6d553c29d106..d2d4e4045ca9 100644
--- a/drivers/gpu/drm/i915/intel_tv.c
+++ b/drivers/gpu/drm/i915/intel_tv.c
@@ -1424,7 +1424,7 @@ intel_tv_get_modes(struct drm_connector *connector)
1424 int j, count = 0; 1424 int j, count = 0;
1425 u64 tmp; 1425 u64 tmp;
1426 1426
1427 for (j = 0; j < sizeof(input_res_table) / sizeof(input_res_table[0]); 1427 for (j = 0; j < ARRAY_SIZE(input_res_table);
1428 j++) { 1428 j++) {
1429 struct input_res *input = &input_res_table[j]; 1429 struct input_res *input = &input_res_table[j];
1430 unsigned int hactive_s = input->w; 1430 unsigned int hactive_s = input->w;
diff --git a/drivers/gpu/drm/savage/savage_bci.c b/drivers/gpu/drm/savage/savage_bci.c
index 2d0c9ca484c5..fa05cda8c98f 100644
--- a/drivers/gpu/drm/savage/savage_bci.c
+++ b/drivers/gpu/drm/savage/savage_bci.c
@@ -552,7 +552,7 @@ int savage_driver_load(struct drm_device *dev, unsigned long chipset)
552 552
553 553
554/* 554/*
555 * Initalize mappings. On Savage4 and SavageIX the alignment 555 * Initialize mappings. On Savage4 and SavageIX the alignment
556 * and size of the aperture is not suitable for automatic MTRR setup 556 * and size of the aperture is not suitable for automatic MTRR setup
557 * in drm_addmap. Therefore we add them manually before the maps are 557 * in drm_addmap. Therefore we add them manually before the maps are
558 * initialized, and tear them down on last close. 558 * initialized, and tear them down on last close.
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
index 8612378b131e..5f2d5df01e5c 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
@@ -1017,7 +1017,7 @@ int vmw_gmr_id_alloc(struct vmw_private *dev_priv, uint32_t *p_id)
1017} 1017}
1018 1018
1019/* 1019/*
1020 * Stream managment 1020 * Stream management
1021 */ 1021 */
1022 1022
1023static void vmw_stream_destroy(struct vmw_resource *res) 1023static void vmw_stream_destroy(struct vmw_resource *res)
diff --git a/drivers/ide/ide-gd.c b/drivers/ide/ide-gd.c
index c102d23d9b38..79399534782c 100644
--- a/drivers/ide/ide-gd.c
+++ b/drivers/ide/ide-gd.c
@@ -92,7 +92,7 @@ static void ide_disk_release(struct device *dev)
92 92
93/* 93/*
94 * On HPA drives the capacity needs to be 94 * On HPA drives the capacity needs to be
95 * reinitilized on resume otherwise the disk 95 * reinitialized on resume otherwise the disk
96 * can not be used and a hard reset is required 96 * can not be used and a hard reset is required
97 */ 97 */
98static void ide_gd_resume(ide_drive_t *drive) 98static void ide_gd_resume(ide_drive_t *drive)
diff --git a/drivers/infiniband/hw/cxgb3/iwch_qp.c b/drivers/infiniband/hw/cxgb3/iwch_qp.c
index ae47bfd22bd5..9bbb65bba67e 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_qp.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_qp.c
@@ -816,7 +816,7 @@ static void __flush_qp(struct iwch_qp *qhp, unsigned long *flag)
816 atomic_inc(&qhp->refcnt); 816 atomic_inc(&qhp->refcnt);
817 spin_unlock_irqrestore(&qhp->lock, *flag); 817 spin_unlock_irqrestore(&qhp->lock, *flag);
818 818
819 /* locking heirarchy: cq lock first, then qp lock. */ 819 /* locking hierarchy: cq lock first, then qp lock. */
820 spin_lock_irqsave(&rchp->lock, *flag); 820 spin_lock_irqsave(&rchp->lock, *flag);
821 spin_lock(&qhp->lock); 821 spin_lock(&qhp->lock);
822 cxio_flush_hw_cq(&rchp->cq); 822 cxio_flush_hw_cq(&rchp->cq);
@@ -827,7 +827,7 @@ static void __flush_qp(struct iwch_qp *qhp, unsigned long *flag)
827 if (flushed) 827 if (flushed)
828 (*rchp->ibcq.comp_handler)(&rchp->ibcq, rchp->ibcq.cq_context); 828 (*rchp->ibcq.comp_handler)(&rchp->ibcq, rchp->ibcq.cq_context);
829 829
830 /* locking heirarchy: cq lock first, then qp lock. */ 830 /* locking hierarchy: cq lock first, then qp lock. */
831 spin_lock_irqsave(&schp->lock, *flag); 831 spin_lock_irqsave(&schp->lock, *flag);
832 spin_lock(&qhp->lock); 832 spin_lock(&qhp->lock);
833 cxio_flush_hw_cq(&schp->cq); 833 cxio_flush_hw_cq(&schp->cq);
diff --git a/drivers/infiniband/hw/cxgb4/qp.c b/drivers/infiniband/hw/cxgb4/qp.c
index 7065cb310553..86b93f2ecca3 100644
--- a/drivers/infiniband/hw/cxgb4/qp.c
+++ b/drivers/infiniband/hw/cxgb4/qp.c
@@ -905,7 +905,7 @@ static void __flush_qp(struct c4iw_qp *qhp, struct c4iw_cq *rchp,
905 atomic_inc(&qhp->refcnt); 905 atomic_inc(&qhp->refcnt);
906 spin_unlock_irqrestore(&qhp->lock, *flag); 906 spin_unlock_irqrestore(&qhp->lock, *flag);
907 907
908 /* locking heirarchy: cq lock first, then qp lock. */ 908 /* locking hierarchy: cq lock first, then qp lock. */
909 spin_lock_irqsave(&rchp->lock, *flag); 909 spin_lock_irqsave(&rchp->lock, *flag);
910 spin_lock(&qhp->lock); 910 spin_lock(&qhp->lock);
911 c4iw_flush_hw_cq(&rchp->cq); 911 c4iw_flush_hw_cq(&rchp->cq);
@@ -916,7 +916,7 @@ static void __flush_qp(struct c4iw_qp *qhp, struct c4iw_cq *rchp,
916 if (flushed) 916 if (flushed)
917 (*rchp->ibcq.comp_handler)(&rchp->ibcq, rchp->ibcq.cq_context); 917 (*rchp->ibcq.comp_handler)(&rchp->ibcq, rchp->ibcq.cq_context);
918 918
919 /* locking heirarchy: cq lock first, then qp lock. */ 919 /* locking hierarchy: cq lock first, then qp lock. */
920 spin_lock_irqsave(&schp->lock, *flag); 920 spin_lock_irqsave(&schp->lock, *flag);
921 spin_lock(&qhp->lock); 921 spin_lock(&qhp->lock);
922 c4iw_flush_hw_cq(&schp->cq); 922 c4iw_flush_hw_cq(&schp->cq);
diff --git a/drivers/infiniband/hw/ehca/hcp_if.h b/drivers/infiniband/hw/ehca/hcp_if.h
index 39c1c3618ec7..a46e514c367b 100644
--- a/drivers/infiniband/hw/ehca/hcp_if.h
+++ b/drivers/infiniband/hw/ehca/hcp_if.h
@@ -49,7 +49,7 @@
49#include "hipz_hw.h" 49#include "hipz_hw.h"
50 50
51/* 51/*
52 * hipz_h_alloc_resource_eq allocates EQ resources in HW and FW, initalize 52 * hipz_h_alloc_resource_eq allocates EQ resources in HW and FW, initialize
53 * resources, create the empty EQPT (ring). 53 * resources, create the empty EQPT (ring).
54 */ 54 */
55u64 hipz_h_alloc_resource_eq(const struct ipz_adapter_handle adapter_handle, 55u64 hipz_h_alloc_resource_eq(const struct ipz_adapter_handle adapter_handle,
diff --git a/drivers/infiniband/hw/ipath/ipath_file_ops.c b/drivers/infiniband/hw/ipath/ipath_file_ops.c
index 9c5c66d16a23..65eb8929db22 100644
--- a/drivers/infiniband/hw/ipath/ipath_file_ops.c
+++ b/drivers/infiniband/hw/ipath/ipath_file_ops.c
@@ -2055,7 +2055,7 @@ static int ipath_close(struct inode *in, struct file *fp)
2055 2055
2056 mutex_lock(&ipath_mutex); 2056 mutex_lock(&ipath_mutex);
2057 2057
2058 fd = (struct ipath_filedata *) fp->private_data; 2058 fd = fp->private_data;
2059 fp->private_data = NULL; 2059 fp->private_data = NULL;
2060 pd = fd->pd; 2060 pd = fd->pd;
2061 if (!pd) { 2061 if (!pd) {
diff --git a/drivers/input/misc/ad714x.c b/drivers/input/misc/ad714x.c
index 0fe27baf5e72..c431d09e401a 100644
--- a/drivers/input/misc/ad714x.c
+++ b/drivers/input/misc/ad714x.c
@@ -1118,7 +1118,7 @@ struct ad714x_chip *ad714x_probe(struct device *dev, u16 bus_type, int irq,
1118 if (error) 1118 if (error)
1119 goto err_free_mem; 1119 goto err_free_mem;
1120 1120
1121 /* initilize and request sw/hw resources */ 1121 /* initialize and request sw/hw resources */
1122 1122
1123 ad714x_hw_init(ad714x); 1123 ad714x_hw_init(ad714x);
1124 mutex_init(&ad714x->mutex); 1124 mutex_init(&ad714x->mutex);
diff --git a/drivers/isdn/hardware/mISDN/avmfritz.c b/drivers/isdn/hardware/mISDN/avmfritz.c
index d4215369bb59..472a2af79446 100644
--- a/drivers/isdn/hardware/mISDN/avmfritz.c
+++ b/drivers/isdn/hardware/mISDN/avmfritz.c
@@ -1116,7 +1116,7 @@ fritz_remove_pci(struct pci_dev *pdev)
1116 release_card(card); 1116 release_card(card);
1117 else 1117 else
1118 if (debug) 1118 if (debug)
1119 pr_info("%s: drvdata allready removed\n", __func__); 1119 pr_info("%s: drvdata already removed\n", __func__);
1120} 1120}
1121 1121
1122static struct pci_device_id fcpci_ids[] __devinitdata = { 1122static struct pci_device_id fcpci_ids[] __devinitdata = {
diff --git a/drivers/isdn/hardware/mISDN/hfcmulti.c b/drivers/isdn/hardware/mISDN/hfcmulti.c
index 095ed76ebe80..d3171954fa45 100644
--- a/drivers/isdn/hardware/mISDN/hfcmulti.c
+++ b/drivers/isdn/hardware/mISDN/hfcmulti.c
@@ -4268,7 +4268,7 @@ init_card(struct hfc_multi *hc)
4268 goto error; 4268 goto error;
4269 /* 4269 /*
4270 * Finally enable IRQ output 4270 * Finally enable IRQ output
4271 * this is only allowed, if an IRQ routine is allready 4271 * this is only allowed, if an IRQ routine is already
4272 * established for this HFC, so don't do that earlier 4272 * established for this HFC, so don't do that earlier
4273 */ 4273 */
4274 spin_lock_irqsave(&hc->lock, flags); 4274 spin_lock_irqsave(&hc->lock, flags);
@@ -5212,7 +5212,7 @@ static void __devexit hfc_remove_pci(struct pci_dev *pdev)
5212 spin_unlock_irqrestore(&HFClock, flags); 5212 spin_unlock_irqrestore(&HFClock, flags);
5213 } else { 5213 } else {
5214 if (debug) 5214 if (debug)
5215 printk(KERN_DEBUG "%s: drvdata allready removed\n", 5215 printk(KERN_DEBUG "%s: drvdata already removed\n",
5216 __func__); 5216 __func__);
5217 } 5217 }
5218} 5218}
diff --git a/drivers/isdn/hardware/mISDN/hfcpci.c b/drivers/isdn/hardware/mISDN/hfcpci.c
index 5940a2c12074..65ded0576013 100644
--- a/drivers/isdn/hardware/mISDN/hfcpci.c
+++ b/drivers/isdn/hardware/mISDN/hfcpci.c
@@ -1773,7 +1773,7 @@ init_card(struct hfc_pci *hc)
1773 inithfcpci(hc); 1773 inithfcpci(hc);
1774 /* 1774 /*
1775 * Finally enable IRQ output 1775 * Finally enable IRQ output
1776 * this is only allowed, if an IRQ routine is allready 1776 * this is only allowed, if an IRQ routine is already
1777 * established for this HFC, so don't do that earlier 1777 * established for this HFC, so don't do that earlier
1778 */ 1778 */
1779 enable_hwirq(hc); 1779 enable_hwirq(hc);
diff --git a/drivers/isdn/hardware/mISDN/mISDNinfineon.c b/drivers/isdn/hardware/mISDN/mISDNinfineon.c
index f5b3d2b26a08..4975976e93ac 100644
--- a/drivers/isdn/hardware/mISDN/mISDNinfineon.c
+++ b/drivers/isdn/hardware/mISDN/mISDNinfineon.c
@@ -1150,7 +1150,7 @@ inf_remove(struct pci_dev *pdev)
1150 if (card) 1150 if (card)
1151 release_card(card); 1151 release_card(card);
1152 else 1152 else
1153 pr_debug("%s: drvdata allready removed\n", __func__); 1153 pr_debug("%s: drvdata already removed\n", __func__);
1154} 1154}
1155 1155
1156static struct pci_driver infineon_driver = { 1156static struct pci_driver infineon_driver = {
diff --git a/drivers/isdn/hardware/mISDN/speedfax.c b/drivers/isdn/hardware/mISDN/speedfax.c
index d097a4e40e2b..9e07246bb9e7 100644
--- a/drivers/isdn/hardware/mISDN/speedfax.c
+++ b/drivers/isdn/hardware/mISDN/speedfax.c
@@ -484,7 +484,7 @@ sfax_remove_pci(struct pci_dev *pdev)
484 if (card) 484 if (card)
485 release_card(card); 485 release_card(card);
486 else 486 else
487 pr_debug("%s: drvdata allready removed\n", __func__); 487 pr_debug("%s: drvdata already removed\n", __func__);
488} 488}
489 489
490static struct pci_device_id sfaxpci_ids[] __devinitdata = { 490static struct pci_device_id sfaxpci_ids[] __devinitdata = {
diff --git a/drivers/isdn/hardware/mISDN/w6692.c b/drivers/isdn/hardware/mISDN/w6692.c
index 31f9d71fb22f..9e84870b971c 100644
--- a/drivers/isdn/hardware/mISDN/w6692.c
+++ b/drivers/isdn/hardware/mISDN/w6692.c
@@ -1402,7 +1402,7 @@ w6692_remove_pci(struct pci_dev *pdev)
1402 release_card(card); 1402 release_card(card);
1403 else 1403 else
1404 if (debug) 1404 if (debug)
1405 pr_notice("%s: drvdata allready removed\n", __func__); 1405 pr_notice("%s: drvdata already removed\n", __func__);
1406} 1406}
1407 1407
1408static struct pci_device_id w6692_ids[] = { 1408static struct pci_device_id w6692_ids[] = {
diff --git a/drivers/isdn/hisax/callc.c b/drivers/isdn/hisax/callc.c
index f58ded8f403f..f150330b5a23 100644
--- a/drivers/isdn/hisax/callc.c
+++ b/drivers/isdn/hisax/callc.c
@@ -1172,7 +1172,7 @@ CallcFreeChan(struct IsdnCardState *csta)
1172 kfree(csta->channel[i].b_st); 1172 kfree(csta->channel[i].b_st);
1173 csta->channel[i].b_st = NULL; 1173 csta->channel[i].b_st = NULL;
1174 } else 1174 } else
1175 printk(KERN_WARNING "CallcFreeChan b_st ch%d allready freed\n", i); 1175 printk(KERN_WARNING "CallcFreeChan b_st ch%d already freed\n", i);
1176 if (i || test_bit(FLG_TWO_DCHAN, &csta->HW_Flags)) { 1176 if (i || test_bit(FLG_TWO_DCHAN, &csta->HW_Flags)) {
1177 release_d_st(csta->channel + i); 1177 release_d_st(csta->channel + i);
1178 } else 1178 } else
diff --git a/drivers/isdn/hisax/tei.c b/drivers/isdn/hisax/tei.c
index f4cb178b0666..842f9c9e875d 100644
--- a/drivers/isdn/hisax/tei.c
+++ b/drivers/isdn/hisax/tei.c
@@ -130,7 +130,7 @@ tei_id_request(struct FsmInst *fi, int event, void *arg)
130 130
131 if (st->l2.tei != -1) { 131 if (st->l2.tei != -1) {
132 st->ma.tei_m.printdebug(&st->ma.tei_m, 132 st->ma.tei_m.printdebug(&st->ma.tei_m,
133 "assign request for allready asigned tei %d", 133 "assign request for already asigned tei %d",
134 st->l2.tei); 134 st->l2.tei);
135 return; 135 return;
136 } 136 }
diff --git a/drivers/isdn/mISDN/tei.c b/drivers/isdn/mISDN/tei.c
index 34e898fe2f4f..1b85d9d27496 100644
--- a/drivers/isdn/mISDN/tei.c
+++ b/drivers/isdn/mISDN/tei.c
@@ -457,7 +457,7 @@ tei_id_request(struct FsmInst *fi, int event, void *arg)
457 457
458 if (tm->l2->tei != GROUP_TEI) { 458 if (tm->l2->tei != GROUP_TEI) {
459 tm->tei_m.printdebug(&tm->tei_m, 459 tm->tei_m.printdebug(&tm->tei_m,
460 "assign request for allready assigned tei %d", 460 "assign request for already assigned tei %d",
461 tm->l2->tei); 461 tm->l2->tei);
462 return; 462 return;
463 } 463 }
diff --git a/drivers/media/dvb/siano/smscoreapi.c b/drivers/media/dvb/siano/smscoreapi.c
index 0c87a3c3899a..a19f649666d5 100644
--- a/drivers/media/dvb/siano/smscoreapi.c
+++ b/drivers/media/dvb/siano/smscoreapi.c
@@ -1297,7 +1297,7 @@ int smsclient_sendrequest(struct smscore_client_t *client,
1297EXPORT_SYMBOL_GPL(smsclient_sendrequest); 1297EXPORT_SYMBOL_GPL(smsclient_sendrequest);
1298 1298
1299 1299
1300/* old GPIO managments implementation */ 1300/* old GPIO managements implementation */
1301int smscore_configure_gpio(struct smscore_device_t *coredev, u32 pin, 1301int smscore_configure_gpio(struct smscore_device_t *coredev, u32 pin,
1302 struct smscore_config_gpio *pinconfig) 1302 struct smscore_config_gpio *pinconfig)
1303{ 1303{
diff --git a/drivers/media/video/gspca/sunplus.c b/drivers/media/video/gspca/sunplus.c
index 0c786e00ebcf..d0a133abe767 100644
--- a/drivers/media/video/gspca/sunplus.c
+++ b/drivers/media/video/gspca/sunplus.c
@@ -805,7 +805,7 @@ static int sd_init(struct gspca_dev *gspca_dev)
805 /* Set AE AWB Banding Type 3-> 50Hz 2-> 60Hz */ 805 /* Set AE AWB Banding Type 3-> 50Hz 2-> 60Hz */
806 spca504A_acknowledged_command(gspca_dev, 0x24, 806 spca504A_acknowledged_command(gspca_dev, 0x24,
807 8, 3, 0x9e, 1); 807 8, 3, 0x9e, 1);
808 /* Twice sequencial need status 0xff->0x9e->0x9d */ 808 /* Twice sequential need status 0xff->0x9e->0x9d */
809 spca504A_acknowledged_command(gspca_dev, 0x24, 809 spca504A_acknowledged_command(gspca_dev, 0x24,
810 8, 3, 0x9e, 0); 810 8, 3, 0x9e, 0);
811 811
@@ -880,7 +880,7 @@ static int sd_start(struct gspca_dev *gspca_dev)
880 /* Set AE AWB Banding Type 3-> 50Hz 2-> 60Hz */ 880 /* Set AE AWB Banding Type 3-> 50Hz 2-> 60Hz */
881 spca504A_acknowledged_command(gspca_dev, 0x24, 881 spca504A_acknowledged_command(gspca_dev, 0x24,
882 8, 3, 0x9e, 1); 882 8, 3, 0x9e, 1);
883 /* Twice sequencial need status 0xff->0x9e->0x9d */ 883 /* Twice sequential need status 0xff->0x9e->0x9d */
884 spca504A_acknowledged_command(gspca_dev, 0x24, 884 spca504A_acknowledged_command(gspca_dev, 0x24,
885 8, 3, 0x9e, 0); 885 8, 3, 0x9e, 0);
886 spca504A_acknowledged_command(gspca_dev, 0x24, 886 spca504A_acknowledged_command(gspca_dev, 0x24,
diff --git a/drivers/media/video/usbvideo/vicam.c b/drivers/media/video/usbvideo/vicam.c
index 6030410c6677..5d6fd01f918a 100644
--- a/drivers/media/video/usbvideo/vicam.c
+++ b/drivers/media/video/usbvideo/vicam.c
@@ -2,7 +2,7 @@
2 * USB ViCam WebCam driver 2 * USB ViCam WebCam driver
3 * Copyright (c) 2002 Joe Burks (jburks@wavicle.org), 3 * Copyright (c) 2002 Joe Burks (jburks@wavicle.org),
4 * Christopher L Cheney (ccheney@cheney.cx), 4 * Christopher L Cheney (ccheney@cheney.cx),
5 * Pavel Machek (pavel@suse.cz), 5 * Pavel Machek (pavel@ucw.cz),
6 * John Tyner (jtyner@cs.ucr.edu), 6 * John Tyner (jtyner@cs.ucr.edu),
7 * Monroe Williams (monroe@pobox.com) 7 * Monroe Williams (monroe@pobox.com)
8 * 8 *
diff --git a/drivers/media/video/v4l2-compat-ioctl32.c b/drivers/media/video/v4l2-compat-ioctl32.c
index 9004a5fe7643..d2f20c2acae2 100644
--- a/drivers/media/video/v4l2-compat-ioctl32.c
+++ b/drivers/media/video/v4l2-compat-ioctl32.c
@@ -5,7 +5,7 @@
5 * Copyright (C) 1997-2000 Jakub Jelinek (jakub@redhat.com) 5 * Copyright (C) 1997-2000 Jakub Jelinek (jakub@redhat.com)
6 * Copyright (C) 1998 Eddie C. Dost (ecd@skynet.be) 6 * Copyright (C) 1998 Eddie C. Dost (ecd@skynet.be)
7 * Copyright (C) 2001,2002 Andi Kleen, SuSE Labs 7 * Copyright (C) 2001,2002 Andi Kleen, SuSE Labs
8 * Copyright (C) 2003 Pavel Machek (pavel@suse.cz) 8 * Copyright (C) 2003 Pavel Machek (pavel@ucw.cz)
9 * Copyright (C) 2005 Philippe De Muyter (phdm@macqel.be) 9 * Copyright (C) 2005 Philippe De Muyter (phdm@macqel.be)
10 * Copyright (C) 2008 Hans Verkuil <hverkuil@xs4all.nl> 10 * Copyright (C) 2008 Hans Verkuil <hverkuil@xs4all.nl>
11 * 11 *
diff --git a/drivers/media/video/zoran/zoran.h b/drivers/media/video/zoran/zoran.h
index 8997add1248e..307e847fe1cd 100644
--- a/drivers/media/video/zoran/zoran.h
+++ b/drivers/media/video/zoran/zoran.h
@@ -391,7 +391,7 @@ struct zoran {
391 391
392 struct mutex resource_lock; /* prevent evil stuff */ 392 struct mutex resource_lock; /* prevent evil stuff */
393 393
394 u8 initialized; /* flag if zoran has been correctly initalized */ 394 u8 initialized; /* flag if zoran has been correctly initialized */
395 int user; /* number of current users */ 395 int user; /* number of current users */
396 struct card_info card; 396 struct card_info card;
397 struct tvnorm *timing; 397 struct tvnorm *timing;
diff --git a/drivers/media/video/zoran/zoran_device.c b/drivers/media/video/zoran/zoran_device.c
index e6ad4b205611..6f846abee3e4 100644
--- a/drivers/media/video/zoran/zoran_device.c
+++ b/drivers/media/video/zoran/zoran_device.c
@@ -484,7 +484,7 @@ zr36057_overlay (struct zoran *zr,
484 zr->overlay_settings.format); 484 zr->overlay_settings.format);
485 485
486 /* Start and length of each line MUST be 4-byte aligned. 486 /* Start and length of each line MUST be 4-byte aligned.
487 * This should be allready checked before the call to this routine. 487 * This should be already checked before the call to this routine.
488 * All error messages are internal driver checking only! */ 488 * All error messages are internal driver checking only! */
489 489
490 /* video display top and bottom registers */ 490 /* video display top and bottom registers */
diff --git a/drivers/media/video/zoran/zr36050.c b/drivers/media/video/zoran/zr36050.c
index 639dd87c663f..e1985609af4b 100644
--- a/drivers/media/video/zoran/zr36050.c
+++ b/drivers/media/video/zoran/zr36050.c
@@ -236,7 +236,7 @@ zr36050_pushit (struct zr36050 *ptr,
236 236
237 Could be variable, but until it's not needed it they are just fixed to save 237 Could be variable, but until it's not needed it they are just fixed to save
238 memory. Otherwise expand zr36050 structure with arrays, push the values to 238 memory. Otherwise expand zr36050 structure with arrays, push the values to
239 it and initalize from there, as e.g. the linux zr36057/60 driver does it. 239 it and initialize from there, as e.g. the linux zr36057/60 driver does it.
240 ========================================================================= */ 240 ========================================================================= */
241 241
242static const char zr36050_dqt[0x86] = { 242static const char zr36050_dqt[0x86] = {
diff --git a/drivers/media/video/zoran/zr36060.c b/drivers/media/video/zoran/zr36060.c
index 008746ff7746..5e4f57cbf314 100644
--- a/drivers/media/video/zoran/zr36060.c
+++ b/drivers/media/video/zoran/zr36060.c
@@ -227,7 +227,7 @@ zr36060_pushit (struct zr36060 *ptr,
227 227
228 Could be variable, but until it's not needed it they are just fixed to save 228 Could be variable, but until it's not needed it they are just fixed to save
229 memory. Otherwise expand zr36060 structure with arrays, push the values to 229 memory. Otherwise expand zr36060 structure with arrays, push the values to
230 it and initalize from there, as e.g. the linux zr36057/60 driver does it. 230 it and initialize from there, as e.g. the linux zr36057/60 driver does it.
231 ========================================================================= */ 231 ========================================================================= */
232 232
233static const char zr36060_dqt[0x86] = { 233static const char zr36060_dqt[0x86] = {
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c
index a6a57011ba6c..14d162fb8a2a 100644
--- a/drivers/message/fusion/mptbase.c
+++ b/drivers/message/fusion/mptbase.c
@@ -1794,7 +1794,7 @@ mpt_attach(struct pci_dev *pdev, const struct pci_device_id *id)
1794 ioc->sh = NULL; 1794 ioc->sh = NULL;
1795 ioc->cached_fw = NULL; 1795 ioc->cached_fw = NULL;
1796 1796
1797 /* Initilize SCSI Config Data structure 1797 /* Initialize SCSI Config Data structure
1798 */ 1798 */
1799 memset(&ioc->spi_data, 0, sizeof(SpiCfgData)); 1799 memset(&ioc->spi_data, 0, sizeof(SpiCfgData));
1800 1800
@@ -2471,7 +2471,7 @@ mpt_do_ioc_recovery(MPT_ADAPTER *ioc, u32 reason, int sleepFlag)
2471 if ((ret == 0) && (reason == MPT_HOSTEVENT_IOC_BRINGUP)) { 2471 if ((ret == 0) && (reason == MPT_HOSTEVENT_IOC_BRINGUP)) {
2472 2472
2473 /* 2473 /*
2474 * Initalize link list for inactive raid volumes. 2474 * Initialize link list for inactive raid volumes.
2475 */ 2475 */
2476 mutex_init(&ioc->raid_data.inactive_list_mutex); 2476 mutex_init(&ioc->raid_data.inactive_list_mutex);
2477 INIT_LIST_HEAD(&ioc->raid_data.inactive_list); 2477 INIT_LIST_HEAD(&ioc->raid_data.inactive_list);
diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index ca03428b59cc..3dfda9cc677d 100644
--- a/drivers/mtd/nand/denali.c
+++ b/drivers/mtd/nand/denali.c
@@ -1836,7 +1836,7 @@ static struct nand_bbt_descr bbt_mirror_descr = {
1836 .pattern = mirror_pattern, 1836 .pattern = mirror_pattern,
1837}; 1837};
1838 1838
1839/* initalize driver data structures */ 1839/* initialize driver data structures */
1840void denali_drv_init(struct denali_nand_info *denali) 1840void denali_drv_init(struct denali_nand_info *denali)
1841{ 1841{
1842 denali->idx = 0; 1842 denali->idx = 0;
diff --git a/drivers/net/3c527.c b/drivers/net/3c527.c
index 38395dfa4963..70705d1306b9 100644
--- a/drivers/net/3c527.c
+++ b/drivers/net/3c527.c
@@ -729,14 +729,14 @@ static void mc32_halt_transceiver(struct net_device *dev)
729 * mc32_load_rx_ring - load the ring of receive buffers 729 * mc32_load_rx_ring - load the ring of receive buffers
730 * @dev: 3c527 to build the ring for 730 * @dev: 3c527 to build the ring for
731 * 731 *
732 * This initalises the on-card and driver datastructures to 732 * This initialises the on-card and driver datastructures to
733 * the point where mc32_start_transceiver() can be called. 733 * the point where mc32_start_transceiver() can be called.
734 * 734 *
735 * The card sets up the receive ring for us. We are required to use the 735 * The card sets up the receive ring for us. We are required to use the
736 * ring it provides, although the size of the ring is configurable. 736 * ring it provides, although the size of the ring is configurable.
737 * 737 *
738 * We allocate an sk_buff for each ring entry in turn and 738 * We allocate an sk_buff for each ring entry in turn and
739 * initalise its house-keeping info. At the same time, we read 739 * initialise its house-keeping info. At the same time, we read
740 * each 'next' pointer in our rx_ring array. This reduces slow 740 * each 'next' pointer in our rx_ring array. This reduces slow
741 * shared-memory reads and makes it easy to access predecessor 741 * shared-memory reads and makes it easy to access predecessor
742 * descriptors. 742 * descriptors.
diff --git a/drivers/net/appletalk/ipddp.c b/drivers/net/appletalk/ipddp.c
index 79636ee35829..0362c8d31a08 100644
--- a/drivers/net/appletalk/ipddp.c
+++ b/drivers/net/appletalk/ipddp.c
@@ -80,7 +80,7 @@ static struct net_device * __init ipddp_init(void)
80 if (version_printed++ == 0) 80 if (version_printed++ == 0)
81 printk(version); 81 printk(version);
82 82
83 /* Initalize the device structure. */ 83 /* Initialize the device structure. */
84 dev->netdev_ops = &ipddp_netdev_ops; 84 dev->netdev_ops = &ipddp_netdev_ops;
85 85
86 dev->type = ARPHRD_IPDDP; /* IP over DDP tunnel */ 86 dev->type = ARPHRD_IPDDP; /* IP over DDP tunnel */
diff --git a/drivers/net/benet/be_hw.h b/drivers/net/benet/be_hw.h
index 063026de4957..3f1b7c3965bb 100644
--- a/drivers/net/benet/be_hw.h
+++ b/drivers/net/benet/be_hw.h
@@ -52,7 +52,7 @@
52 */ 52 */
53#define MEMBAR_CTRL_INT_CTRL_HOSTINTR_MASK (1 << 29) /* bit 29 */ 53#define MEMBAR_CTRL_INT_CTRL_HOSTINTR_MASK (1 << 29) /* bit 29 */
54 54
55/********* Power managment (WOL) **********/ 55/********* Power management (WOL) **********/
56#define PCICFG_PM_CONTROL_OFFSET 0x44 56#define PCICFG_PM_CONTROL_OFFSET 0x44
57#define PCICFG_PM_CONTROL_MASK 0x108 /* bits 3 & 8 */ 57#define PCICFG_PM_CONTROL_MASK 0x108 /* bits 3 & 8 */
58 58
diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c
index 28b53d1cd4f1..efd4c70753db 100644
--- a/drivers/net/gianfar.c
+++ b/drivers/net/gianfar.c
@@ -916,7 +916,7 @@ static void gfar_init_filer_table(struct gfar_private *priv)
916 rqfar = cluster_entry_per_class(priv, rqfar, RQFPR_IPV4 | RQFPR_UDP); 916 rqfar = cluster_entry_per_class(priv, rqfar, RQFPR_IPV4 | RQFPR_UDP);
917 rqfar = cluster_entry_per_class(priv, rqfar, RQFPR_IPV4 | RQFPR_TCP); 917 rqfar = cluster_entry_per_class(priv, rqfar, RQFPR_IPV4 | RQFPR_TCP);
918 918
919 /* cur_filer_idx indicated the fisrt non-masked rule */ 919 /* cur_filer_idx indicated the first non-masked rule */
920 priv->cur_filer_idx = rqfar; 920 priv->cur_filer_idx = rqfar;
921 921
922 /* Rest are masked rules */ 922 /* Rest are masked rules */
diff --git a/drivers/net/hp100.c b/drivers/net/hp100.c
index 68e5ac8832ad..dfc787fa8b17 100644
--- a/drivers/net/hp100.c
+++ b/drivers/net/hp100.c
@@ -1071,7 +1071,7 @@ static void hp100_mmuinit(struct net_device *dev)
1071 if (lp->mode == 1) 1071 if (lp->mode == 1)
1072 hp100_init_pdls(dev); 1072 hp100_init_pdls(dev);
1073 1073
1074 /* Go to performance page and initalize isr and imr registers */ 1074 /* Go to performance page and initialize isr and imr registers */
1075 hp100_page(PERFORMANCE); 1075 hp100_page(PERFORMANCE);
1076 hp100_outw(0xfefe, IRQ_MASK); /* mask off all ints */ 1076 hp100_outw(0xfefe, IRQ_MASK); /* mask off all ints */
1077 hp100_outw(0xffff, IRQ_STATUS); /* ack IRQ */ 1077 hp100_outw(0xffff, IRQ_STATUS); /* ack IRQ */
diff --git a/drivers/net/ibm_newemac/core.c b/drivers/net/ibm_newemac/core.c
index b150c102ca5a..0f1d4e96cf89 100644
--- a/drivers/net/ibm_newemac/core.c
+++ b/drivers/net/ibm_newemac/core.c
@@ -1045,7 +1045,7 @@ static int emac_change_mtu(struct net_device *ndev, int new_mtu)
1045 DBG(dev, "change_mtu(%d)" NL, new_mtu); 1045 DBG(dev, "change_mtu(%d)" NL, new_mtu);
1046 1046
1047 if (netif_running(ndev)) { 1047 if (netif_running(ndev)) {
1048 /* Check if we really need to reinitalize RX ring */ 1048 /* Check if we really need to reinitialize RX ring */
1049 if (emac_rx_skb_size(ndev->mtu) != emac_rx_skb_size(new_mtu)) 1049 if (emac_rx_skb_size(ndev->mtu) != emac_rx_skb_size(new_mtu))
1050 ret = emac_resize_rx_ring(dev, new_mtu); 1050 ret = emac_resize_rx_ring(dev, new_mtu);
1051 } 1051 }
diff --git a/drivers/net/ksz884x.c b/drivers/net/ksz884x.c
index 7805bbf1d53a..aa50ee1b0247 100644
--- a/drivers/net/ksz884x.c
+++ b/drivers/net/ksz884x.c
@@ -6812,7 +6812,7 @@ static int stp;
6812static int fast_aging; 6812static int fast_aging;
6813 6813
6814/** 6814/**
6815 * netdev_init - initalize network device. 6815 * netdev_init - initialize network device.
6816 * @dev: Network device. 6816 * @dev: Network device.
6817 * 6817 *
6818 * This function initializes the network device. 6818 * This function initializes the network device.
diff --git a/drivers/net/ll_temac_main.c b/drivers/net/ll_temac_main.c
index 6474c4973d3a..dc6bf042579d 100644
--- a/drivers/net/ll_temac_main.c
+++ b/drivers/net/ll_temac_main.c
@@ -449,7 +449,7 @@ static u32 temac_setoptions(struct net_device *ndev, u32 options)
449 return (0); 449 return (0);
450} 450}
451 451
452/* Initilize temac */ 452/* Initialize temac */
453static void temac_device_reset(struct net_device *ndev) 453static void temac_device_reset(struct net_device *ndev)
454{ 454{
455 struct temac_local *lp = netdev_priv(ndev); 455 struct temac_local *lp = netdev_priv(ndev);
diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c
index 501a55ffce57..70a9bc5be1a1 100644
--- a/drivers/net/sh_eth.c
+++ b/drivers/net/sh_eth.c
@@ -1325,7 +1325,7 @@ static int sh_mdio_init(struct net_device *ndev, int id)
1325 bitbang->mdc_msk = 0x01; 1325 bitbang->mdc_msk = 0x01;
1326 bitbang->ctrl.ops = &bb_ops; 1326 bitbang->ctrl.ops = &bb_ops;
1327 1327
1328 /* MII contorller setting */ 1328 /* MII controller setting */
1329 mdp->mii_bus = alloc_mdio_bitbang(&bitbang->ctrl); 1329 mdp->mii_bus = alloc_mdio_bitbang(&bitbang->ctrl);
1330 if (!mdp->mii_bus) { 1330 if (!mdp->mii_bus) {
1331 ret = -ENOMEM; 1331 ret = -ENOMEM;
diff --git a/drivers/net/tulip/dmfe.c b/drivers/net/tulip/dmfe.c
index 29e6c63d39fd..0bc4f3030a80 100644
--- a/drivers/net/tulip/dmfe.c
+++ b/drivers/net/tulip/dmfe.c
@@ -589,7 +589,7 @@ static int dmfe_open(struct DEVICE *dev)
589 db->dm910x_chk_mode = 1; /* Enter the check mode */ 589 db->dm910x_chk_mode = 1; /* Enter the check mode */
590 } 590 }
591 591
592 /* Initilize DM910X board */ 592 /* Initialize DM910X board */
593 dmfe_init_dm910x(dev); 593 dmfe_init_dm910x(dev);
594 594
595 /* Active System Interface */ 595 /* Active System Interface */
@@ -606,9 +606,9 @@ static int dmfe_open(struct DEVICE *dev)
606} 606}
607 607
608 608
609/* Initilize DM910X board 609/* Initialize DM910X board
610 * Reset DM910X board 610 * Reset DM910X board
611 * Initilize TX/Rx descriptor chain structure 611 * Initialize TX/Rx descriptor chain structure
612 * Send the set-up frame 612 * Send the set-up frame
613 * Enable Tx/Rx machine 613 * Enable Tx/Rx machine
614 */ 614 */
@@ -649,7 +649,7 @@ static void dmfe_init_dm910x(struct DEVICE *dev)
649 if ( !(db->media_mode & DMFE_AUTO) ) 649 if ( !(db->media_mode & DMFE_AUTO) )
650 db->op_mode = db->media_mode; /* Force Mode */ 650 db->op_mode = db->media_mode; /* Force Mode */
651 651
652 /* Initiliaze Transmit/Receive decriptor and CR3/4 */ 652 /* Initialize Transmit/Receive decriptor and CR3/4 */
653 dmfe_descriptor_init(db, ioaddr); 653 dmfe_descriptor_init(db, ioaddr);
654 654
655 /* Init CR6 to program DM910x operation */ 655 /* Init CR6 to program DM910x operation */
@@ -1288,7 +1288,7 @@ static void dmfe_timer(unsigned long data)
1288 * Stop DM910X board 1288 * Stop DM910X board
1289 * Free Tx/Rx allocated memory 1289 * Free Tx/Rx allocated memory
1290 * Reset DM910X board 1290 * Reset DM910X board
1291 * Re-initilize DM910X board 1291 * Re-initialize DM910X board
1292 */ 1292 */
1293 1293
1294static void dmfe_dynamic_reset(struct DEVICE *dev) 1294static void dmfe_dynamic_reset(struct DEVICE *dev)
@@ -1316,7 +1316,7 @@ static void dmfe_dynamic_reset(struct DEVICE *dev)
1316 netif_carrier_off(dev); 1316 netif_carrier_off(dev);
1317 db->wait_reset = 0; 1317 db->wait_reset = 0;
1318 1318
1319 /* Re-initilize DM910X board */ 1319 /* Re-initialize DM910X board */
1320 dmfe_init_dm910x(dev); 1320 dmfe_init_dm910x(dev);
1321 1321
1322 /* Restart upper layer interface */ 1322 /* Restart upper layer interface */
@@ -1447,7 +1447,7 @@ static void update_cr6(u32 cr6_data, unsigned long ioaddr)
1447 1447
1448/* 1448/*
1449 * Send a setup frame for DM9132 1449 * Send a setup frame for DM9132
1450 * This setup frame initilize DM910X address filter mode 1450 * This setup frame initialize DM910X address filter mode
1451*/ 1451*/
1452 1452
1453static void dm9132_id_table(struct DEVICE *dev) 1453static void dm9132_id_table(struct DEVICE *dev)
@@ -1489,7 +1489,7 @@ static void dm9132_id_table(struct DEVICE *dev)
1489 1489
1490/* 1490/*
1491 * Send a setup frame for DM9102/DM9102A 1491 * Send a setup frame for DM9102/DM9102A
1492 * This setup frame initilize DM910X address filter mode 1492 * This setup frame initialize DM910X address filter mode
1493 */ 1493 */
1494 1494
1495static void send_filter_frame(struct DEVICE *dev) 1495static void send_filter_frame(struct DEVICE *dev)
@@ -2142,7 +2142,7 @@ static int dmfe_resume(struct pci_dev *pci_dev)
2142 pci_set_power_state(pci_dev, PCI_D0); 2142 pci_set_power_state(pci_dev, PCI_D0);
2143 pci_restore_state(pci_dev); 2143 pci_restore_state(pci_dev);
2144 2144
2145 /* Re-initilize DM910X board */ 2145 /* Re-initialize DM910X board */
2146 dmfe_init_dm910x(dev); 2146 dmfe_init_dm910x(dev);
2147 2147
2148 /* Disable WOL */ 2148 /* Disable WOL */
@@ -2196,7 +2196,7 @@ MODULE_PARM_DESC(SF_mode, "Davicom DM9xxx special function "
2196 2196
2197/* Description: 2197/* Description:
2198 * when user used insmod to add module, system invoked init_module() 2198 * when user used insmod to add module, system invoked init_module()
2199 * to initilize and register. 2199 * to initialize and register.
2200 */ 2200 */
2201 2201
2202static int __init dmfe_init_module(void) 2202static int __init dmfe_init_module(void)
diff --git a/drivers/net/wimax/i2400m/control.c b/drivers/net/wimax/i2400m/control.c
index d86e8f31e7fc..7f48e040c3be 100644
--- a/drivers/net/wimax/i2400m/control.c
+++ b/drivers/net/wimax/i2400m/control.c
@@ -50,7 +50,7 @@
50 * 50 *
51 * ROADMAP 51 * ROADMAP
52 * 52 *
53 * i2400m_dev_initalize() Called by i2400m_dev_start() 53 * i2400m_dev_initialize() Called by i2400m_dev_start()
54 * i2400m_set_init_config() 54 * i2400m_set_init_config()
55 * i2400m_cmd_get_state() 55 * i2400m_cmd_get_state()
56 * i2400m_dev_shutdown() Called by i2400m_dev_stop() 56 * i2400m_dev_shutdown() Called by i2400m_dev_stop()
diff --git a/drivers/net/wireless/hostap/hostap_ap.c b/drivers/net/wireless/hostap/hostap_ap.c
index 231dbd77f5f5..cb3c25f0c190 100644
--- a/drivers/net/wireless/hostap/hostap_ap.c
+++ b/drivers/net/wireless/hostap/hostap_ap.c
@@ -1225,7 +1225,7 @@ static void ap_crypt_init(struct ap_data *ap)
1225 1225
1226 1226
1227/* Generate challenge data for shared key authentication. IEEE 802.11 specifies 1227/* Generate challenge data for shared key authentication. IEEE 802.11 specifies
1228 * that WEP algorithm is used for generating challange. This should be unique, 1228 * that WEP algorithm is used for generating challenge. This should be unique,
1229 * but otherwise there is not really need for randomness etc. Initialize WEP 1229 * but otherwise there is not really need for randomness etc. Initialize WEP
1230 * with pseudo random key and then use increasing IV to get unique challenge 1230 * with pseudo random key and then use increasing IV to get unique challenge
1231 * streams. 1231 * streams.
diff --git a/drivers/net/wireless/hostap/hostap_hw.c b/drivers/net/wireless/hostap/hostap_hw.c
index 2f999fc94f60..e9d9d622a9b0 100644
--- a/drivers/net/wireless/hostap/hostap_hw.c
+++ b/drivers/net/wireless/hostap/hostap_hw.c
@@ -1896,7 +1896,7 @@ fail:
1896/* Some SMP systems have reported number of odd errors with hostap_pci. fid 1896/* Some SMP systems have reported number of odd errors with hostap_pci. fid
1897 * register has changed values between consecutive reads for an unknown reason. 1897 * register has changed values between consecutive reads for an unknown reason.
1898 * This should really not happen, so more debugging is needed. This test 1898 * This should really not happen, so more debugging is needed. This test
1899 * version is a big slower, but it will detect most of such register changes 1899 * version is a bit slower, but it will detect most of such register changes
1900 * and will try to get the correct fid eventually. */ 1900 * and will try to get the correct fid eventually. */
1901#define EXTRA_FID_READ_TESTS 1901#define EXTRA_FID_READ_TESTS
1902 1902
diff --git a/drivers/parisc/ccio-dma.c b/drivers/parisc/ccio-dma.c
index f511e70d454c..75a80e46b391 100644
--- a/drivers/parisc/ccio-dma.c
+++ b/drivers/parisc/ccio-dma.c
@@ -1241,10 +1241,10 @@ static struct parisc_driver ccio_driver = {
1241}; 1241};
1242 1242
1243/** 1243/**
1244 * ccio_ioc_init - Initalize the I/O Controller 1244 * ccio_ioc_init - Initialize the I/O Controller
1245 * @ioc: The I/O Controller. 1245 * @ioc: The I/O Controller.
1246 * 1246 *
1247 * Initalize the I/O Controller which includes setting up the 1247 * Initialize the I/O Controller which includes setting up the
1248 * I/O Page Directory, the resource map, and initalizing the 1248 * I/O Page Directory, the resource map, and initalizing the
1249 * U2/Uturn chip into virtual mode. 1249 * U2/Uturn chip into virtual mode.
1250 */ 1250 */
diff --git a/drivers/pcmcia/sa11xx_base.c b/drivers/pcmcia/sa11xx_base.c
index fa28d8911b00..0c62fe31a40e 100644
--- a/drivers/pcmcia/sa11xx_base.c
+++ b/drivers/pcmcia/sa11xx_base.c
@@ -231,7 +231,7 @@ int sa11xx_drv_pcmcia_probe(struct device *dev, struct pcmcia_low_level *ops,
231 231
232 sinfo->nskt = nr; 232 sinfo->nskt = nr;
233 233
234 /* Initiliaze processor specific parameters */ 234 /* Initialize processor specific parameters */
235 for (i = 0; i < nr; i++) { 235 for (i = 0; i < nr; i++) {
236 skt = &sinfo->skt[i]; 236 skt = &sinfo->skt[i];
237 237
diff --git a/drivers/rapidio/rio.c b/drivers/rapidio/rio.c
index 08fa453af974..74e9d22d95fb 100644
--- a/drivers/rapidio/rio.c
+++ b/drivers/rapidio/rio.c
@@ -808,7 +808,7 @@ int rio_std_route_add_entry(struct rio_mport *mport, u16 destid, u8 hopcount,
808 808
809/** 809/**
810 * rio_std_route_get_entry - Read switch route table entry (port number) 810 * rio_std_route_get_entry - Read switch route table entry (port number)
811 * assosiated with specified destID using standard registers defined in RIO 811 * associated with specified destID using standard registers defined in RIO
812 * specification rev.1.3 812 * specification rev.1.3
813 * @mport: Master port to issue transaction 813 * @mport: Master port to issue transaction
814 * @destid: Destination ID of the device 814 * @destid: Destination ID of the device
diff --git a/drivers/rtc/rtc-fm3130.c b/drivers/rtc/rtc-fm3130.c
index ff6fce61ea41..e4de8f37ae4a 100644
--- a/drivers/rtc/rtc-fm3130.c
+++ b/drivers/rtc/rtc-fm3130.c
@@ -104,7 +104,7 @@ static int fm3130_get_time(struct device *dev, struct rtc_time *t)
104 if (!fm3130->data_valid) { 104 if (!fm3130->data_valid) {
105 /* We have invalid data in RTC, probably due 105 /* We have invalid data in RTC, probably due
106 to battery faults or other problems. Return EIO 106 to battery faults or other problems. Return EIO
107 for now, it will allow us to set data later insted 107 for now, it will allow us to set data later instead
108 of error during probing which disables device */ 108 of error during probing which disables device */
109 return -EIO; 109 return -EIO;
110 } 110 }
diff --git a/drivers/rtc/rtc-rx8025.c b/drivers/rtc/rtc-rx8025.c
index 789f62f9b47d..1146e3522d3c 100644
--- a/drivers/rtc/rtc-rx8025.c
+++ b/drivers/rtc/rtc-rx8025.c
@@ -461,7 +461,7 @@ static struct rtc_class_ops rx8025_rtc_ops = {
461 * Clock precision adjustment support 461 * Clock precision adjustment support
462 * 462 *
463 * According to the RX8025 SA/NB application manual the frequency and 463 * According to the RX8025 SA/NB application manual the frequency and
464 * temperature charateristics can be approximated using the following 464 * temperature characteristics can be approximated using the following
465 * equation: 465 * equation:
466 * 466 *
467 * df = a * (ut - t)**2 467 * df = a * (ut - t)**2
diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c
index 7f87979da22d..0ec3da6f3e12 100644
--- a/drivers/scsi/advansys.c
+++ b/drivers/scsi/advansys.c
@@ -9717,7 +9717,7 @@ static ushort __devinit AscInitAscDvcVar(ASC_DVC_VAR *asc_dvc)
9717 asc_dvc->bug_fix_cntl = 0; 9717 asc_dvc->bug_fix_cntl = 0;
9718 asc_dvc->pci_fix_asyn_xfer = 0; 9718 asc_dvc->pci_fix_asyn_xfer = 0;
9719 asc_dvc->pci_fix_asyn_xfer_always = 0; 9719 asc_dvc->pci_fix_asyn_xfer_always = 0;
9720 /* asc_dvc->init_state initalized in AscInitGetConfig(). */ 9720 /* asc_dvc->init_state initialized in AscInitGetConfig(). */
9721 asc_dvc->sdtr_done = 0; 9721 asc_dvc->sdtr_done = 0;
9722 asc_dvc->cur_total_qng = 0; 9722 asc_dvc->cur_total_qng = 0;
9723 asc_dvc->is_in_int = 0; 9723 asc_dvc->is_in_int = 0;
diff --git a/drivers/scsi/aic7xxx_old/aic7xxx.seq b/drivers/scsi/aic7xxx_old/aic7xxx.seq
index f6fc4b75b5a5..5997e7c3a191 100644
--- a/drivers/scsi/aic7xxx_old/aic7xxx.seq
+++ b/drivers/scsi/aic7xxx_old/aic7xxx.seq
@@ -615,7 +615,7 @@ ultra2_dmafifoflush:
615 * went empty and the next bit of data is copied from 615 * went empty and the next bit of data is copied from
616 * the SCSI fifo into the PCI fifo. It should only 616 * the SCSI fifo into the PCI fifo. It should only
617 * come on when both FIFOs (meaning the entire FIFO 617 * come on when both FIFOs (meaning the entire FIFO
618 * chain) are emtpy. Since it can take up to 4 cycles 618 * chain) are empty. Since it can take up to 4 cycles
619 * for new data to be copied from the SCSI fifo into 619 * for new data to be copied from the SCSI fifo into
620 * the PCI fifo, testing for FIFOEMP status for 4 620 * the PCI fifo, testing for FIFOEMP status for 4
621 * extra times gives the needed time for any 621 * extra times gives the needed time for any
diff --git a/drivers/scsi/aic94xx/aic94xx_seq.c b/drivers/scsi/aic94xx/aic94xx_seq.c
index d01dcc62b39a..74374618010c 100644
--- a/drivers/scsi/aic94xx/aic94xx_seq.c
+++ b/drivers/scsi/aic94xx/aic94xx_seq.c
@@ -588,7 +588,7 @@ static void asd_init_cseq_mdp(struct asd_ha_struct *asd_ha)
588 * asd_init_cseq_scratch -- setup and init CSEQ 588 * asd_init_cseq_scratch -- setup and init CSEQ
589 * @asd_ha: pointer to host adapter structure 589 * @asd_ha: pointer to host adapter structure
590 * 590 *
591 * Setup and initialize Central sequencers. Initialiaze the mode 591 * Setup and initialize Central sequencers. Initialize the mode
592 * independent and dependent scratch page to the default settings. 592 * independent and dependent scratch page to the default settings.
593 */ 593 */
594static void asd_init_cseq_scratch(struct asd_ha_struct *asd_ha) 594static void asd_init_cseq_scratch(struct asd_ha_struct *asd_ha)
@@ -782,7 +782,7 @@ static void asd_init_lseq_mdp(struct asd_ha_struct *asd_ha, int lseq)
782 asd_write_reg_word(asd_ha, LmSEQ_OOB_INT_ENABLES(lseq), 0); 782 asd_write_reg_word(asd_ha, LmSEQ_OOB_INT_ENABLES(lseq), 0);
783 /* 783 /*
784 * Set the desired interval between transmissions of the NOTIFY 784 * Set the desired interval between transmissions of the NOTIFY
785 * (ENABLE SPINUP) primitive. Must be initilized to val - 1. 785 * (ENABLE SPINUP) primitive. Must be initialized to val - 1.
786 */ 786 */
787 asd_write_reg_word(asd_ha, LmSEQ_NOTIFY_TIMER_TIMEOUT(lseq), 787 asd_write_reg_word(asd_ha, LmSEQ_NOTIFY_TIMER_TIMEOUT(lseq),
788 ASD_NOTIFY_TIMEOUT - 1); 788 ASD_NOTIFY_TIMEOUT - 1);
diff --git a/drivers/scsi/bfa/bfa_core.c b/drivers/scsi/bfa/bfa_core.c
index 3a7b3f88932f..d84550636add 100644
--- a/drivers/scsi/bfa/bfa_core.c
+++ b/drivers/scsi/bfa/bfa_core.c
@@ -335,7 +335,7 @@ bfa_get_pciids(struct bfa_pciid_s **pciids, int *npciids)
335 {BFA_PCI_VENDOR_ID_BROCADE, BFA_PCI_DEVICE_ID_CT}, 335 {BFA_PCI_VENDOR_ID_BROCADE, BFA_PCI_DEVICE_ID_CT},
336 }; 336 };
337 337
338 *npciids = sizeof(__pciids) / sizeof(__pciids[0]); 338 *npciids = ARRAY_SIZE(__pciids);
339 *pciids = __pciids; 339 *pciids = __pciids;
340} 340}
341 341
diff --git a/drivers/scsi/bfa/bfa_fcs.c b/drivers/scsi/bfa/bfa_fcs.c
index 3516172c597c..153cb2a3ffe3 100644
--- a/drivers/scsi/bfa/bfa_fcs.c
+++ b/drivers/scsi/bfa/bfa_fcs.c
@@ -86,7 +86,7 @@ bfa_fcs_attach(struct bfa_fcs_s *fcs, struct bfa_s *bfa, struct bfad_s *bfad,
86 bfa_attach_fcs(bfa); 86 bfa_attach_fcs(bfa);
87 fcbuild_init(); 87 fcbuild_init();
88 88
89 for (i = 0; i < sizeof(fcs_modules) / sizeof(fcs_modules[0]); i++) { 89 for (i = 0; i < ARRAY_SIZE(fcs_modules); i++) {
90 mod = &fcs_modules[i]; 90 mod = &fcs_modules[i];
91 if (mod->attach) 91 if (mod->attach)
92 mod->attach(fcs); 92 mod->attach(fcs);
@@ -102,7 +102,7 @@ bfa_fcs_init(struct bfa_fcs_s *fcs)
102 int i; 102 int i;
103 struct bfa_fcs_mod_s *mod; 103 struct bfa_fcs_mod_s *mod;
104 104
105 for (i = 0; i < sizeof(fcs_modules) / sizeof(fcs_modules[0]); i++) { 105 for (i = 0; i < ARRAY_SIZE(fcs_modules); i++) {
106 mod = &fcs_modules[i]; 106 mod = &fcs_modules[i];
107 if (mod->modinit) 107 if (mod->modinit)
108 mod->modinit(fcs); 108 mod->modinit(fcs);
@@ -163,13 +163,11 @@ void
163bfa_fcs_exit(struct bfa_fcs_s *fcs) 163bfa_fcs_exit(struct bfa_fcs_s *fcs)
164{ 164{
165 struct bfa_fcs_mod_s *mod; 165 struct bfa_fcs_mod_s *mod;
166 int nmods, i; 166 int i;
167 167
168 bfa_wc_init(&fcs->wc, bfa_fcs_exit_comp, fcs); 168 bfa_wc_init(&fcs->wc, bfa_fcs_exit_comp, fcs);
169 169
170 nmods = sizeof(fcs_modules) / sizeof(fcs_modules[0]); 170 for (i = 0; i < ARRAY_SIZE(fcs_modules); i++) {
171
172 for (i = 0; i < nmods; i++) {
173 171
174 mod = &fcs_modules[i]; 172 mod = &fcs_modules[i];
175 if (mod->modexit) { 173 if (mod->modexit) {
diff --git a/drivers/scsi/bfa/bfa_ioim.c b/drivers/scsi/bfa/bfa_ioim.c
index 687f3d6e252b..3d2eac104308 100644
--- a/drivers/scsi/bfa/bfa_ioim.c
+++ b/drivers/scsi/bfa/bfa_ioim.c
@@ -488,7 +488,7 @@ bfa_ioim_sm_cleanup_qfull(struct bfa_ioim_s *ioim, enum bfa_ioim_event event)
488 488
489 case BFA_IOIM_SM_ABORT: 489 case BFA_IOIM_SM_ABORT:
490 /** 490 /**
491 * IO is alraedy being cleaned up implicitly 491 * IO is already being cleaned up implicitly
492 */ 492 */
493 ioim->io_cbfn = __bfa_cb_ioim_abort; 493 ioim->io_cbfn = __bfa_cb_ioim_abort;
494 break; 494 break;
diff --git a/drivers/scsi/bfa/vport.c b/drivers/scsi/bfa/vport.c
index 27cd619a227a..e2720c8a6661 100644
--- a/drivers/scsi/bfa/vport.c
+++ b/drivers/scsi/bfa/vport.c
@@ -789,7 +789,7 @@ bfa_cb_lps_fdisc_comp(void *bfad, void *uarg, bfa_status_t status)
789 switch (status) { 789 switch (status) {
790 case BFA_STATUS_OK: 790 case BFA_STATUS_OK:
791 /* 791 /*
792 * Initialiaze the V-Port fields 792 * Initialize the V-Port fields
793 */ 793 */
794 __vport_fcid(vport) = bfa_lps_get_pid(vport->lps); 794 __vport_fcid(vport) = bfa_lps_get_pid(vport->lps);
795 vport->vport_stats.fdisc_accepts++; 795 vport->vport_stats.fdisc_accepts++;
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
index 44a07593de56..fe568effe967 100644
--- a/drivers/scsi/fcoe/fcoe.c
+++ b/drivers/scsi/fcoe/fcoe.c
@@ -2452,7 +2452,7 @@ module_exit(fcoe_exit);
2452 * @fp: response frame, or error encoded in a pointer (timeout) 2452 * @fp: response frame, or error encoded in a pointer (timeout)
2453 * @arg: pointer the the fcoe_ctlr structure 2453 * @arg: pointer the the fcoe_ctlr structure
2454 * 2454 *
2455 * This handles MAC address managment for FCoE, then passes control on to 2455 * This handles MAC address management for FCoE, then passes control on to
2456 * the libfc FLOGI response handler. 2456 * the libfc FLOGI response handler.
2457 */ 2457 */
2458static void fcoe_flogi_resp(struct fc_seq *seq, struct fc_frame *fp, void *arg) 2458static void fcoe_flogi_resp(struct fc_seq *seq, struct fc_frame *fp, void *arg)
@@ -2484,7 +2484,7 @@ done:
2484 * @fp: response frame, or error encoded in a pointer (timeout) 2484 * @fp: response frame, or error encoded in a pointer (timeout)
2485 * @arg: pointer the the fcoe_ctlr structure 2485 * @arg: pointer the the fcoe_ctlr structure
2486 * 2486 *
2487 * This handles MAC address managment for FCoE, then passes control on to 2487 * This handles MAC address management for FCoE, then passes control on to
2488 * the libfc LOGO response handler. 2488 * the libfc LOGO response handler.
2489 */ 2489 */
2490static void fcoe_logo_resp(struct fc_seq *seq, struct fc_frame *fp, void *arg) 2490static void fcoe_logo_resp(struct fc_seq *seq, struct fc_frame *fp, void *arg)
diff --git a/drivers/scsi/libfc/fc_exch.c b/drivers/scsi/libfc/fc_exch.c
index 104e0fba7c43..ca52bfa4a1ec 100644
--- a/drivers/scsi/libfc/fc_exch.c
+++ b/drivers/scsi/libfc/fc_exch.c
@@ -219,8 +219,6 @@ static void fc_exch_els_rrq(struct fc_seq *, struct fc_frame *);
219 */ 219 */
220static char *fc_exch_rctl_names[] = FC_RCTL_NAMES_INIT; 220static char *fc_exch_rctl_names[] = FC_RCTL_NAMES_INIT;
221 221
222#define FC_TABLE_SIZE(x) (sizeof(x) / sizeof(x[0]))
223
224/** 222/**
225 * fc_exch_name_lookup() - Lookup name by opcode 223 * fc_exch_name_lookup() - Lookup name by opcode
226 * @op: Opcode to be looked up 224 * @op: Opcode to be looked up
@@ -249,7 +247,7 @@ static inline const char *fc_exch_name_lookup(unsigned int op, char **table,
249static const char *fc_exch_rctl_name(unsigned int op) 247static const char *fc_exch_rctl_name(unsigned int op)
250{ 248{
251 return fc_exch_name_lookup(op, fc_exch_rctl_names, 249 return fc_exch_name_lookup(op, fc_exch_rctl_names,
252 FC_TABLE_SIZE(fc_exch_rctl_names)); 250 ARRAY_SIZE(fc_exch_rctl_names));
253} 251}
254 252
255/** 253/**
diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c
index 79c9e3ccd341..ef32b065a47f 100644
--- a/drivers/scsi/libfc/fc_lport.c
+++ b/drivers/scsi/libfc/fc_lport.c
@@ -32,11 +32,11 @@
32 * invalid SID. We also need to ensure that states don't change unexpectedly 32 * invalid SID. We also need to ensure that states don't change unexpectedly
33 * while processing another state. 33 * while processing another state.
34 * 34 *
35 * HEIRARCHY 35 * HIERARCHY
36 * 36 *
37 * The following heirarchy defines the locking rules. A greater lock 37 * The following hierarchy defines the locking rules. A greater lock
38 * may be held before acquiring a lesser lock, but a lesser lock should never 38 * may be held before acquiring a lesser lock, but a lesser lock should never
39 * be held while attempting to acquire a greater lock. Here is the heirarchy- 39 * be held while attempting to acquire a greater lock. Here is the hierarchy-
40 * 40 *
41 * lport > disc, lport > rport, disc > rport 41 * lport > disc, lport > rport, disc > rport
42 * 42 *
diff --git a/drivers/scsi/libfc/fc_rport.c b/drivers/scsi/libfc/fc_rport.c
index 39e440f0f54a..2aa599340106 100644
--- a/drivers/scsi/libfc/fc_rport.c
+++ b/drivers/scsi/libfc/fc_rport.c
@@ -34,7 +34,7 @@
34 * The rport should never hold the rport mutex and then attempt to acquire 34 * The rport should never hold the rport mutex and then attempt to acquire
35 * either the lport or disc mutexes. The rport's mutex is considered lesser 35 * either the lport or disc mutexes. The rport's mutex is considered lesser
36 * than both the lport's mutex and the disc mutex. Refer to fc_lport.c for 36 * than both the lport's mutex and the disc mutex. Refer to fc_lport.c for
37 * more comments on the heirarchy. 37 * more comments on the hierarchy.
38 * 38 *
39 * The locking strategy is similar to the lport's strategy. The lock protects 39 * The locking strategy is similar to the lport's strategy. The lock protects
40 * the rport's states and is held and released by the entry points to the rport 40 * the rport's states and is held and released by the entry points to the rport
diff --git a/drivers/scsi/mpt2sas/mpt2sas_base.h b/drivers/scsi/mpt2sas/mpt2sas_base.h
index b4afe431ac1e..41c29a86e834 100644
--- a/drivers/scsi/mpt2sas/mpt2sas_base.h
+++ b/drivers/scsi/mpt2sas/mpt2sas_base.h
@@ -474,7 +474,7 @@ typedef void (*MPT_ADD_SGE)(void *paddr, u32 flags_length, dma_addr_t dma_addr);
474 * @shost_recovery: host reset in progress 474 * @shost_recovery: host reset in progress
475 * @ioc_reset_in_progress_lock: 475 * @ioc_reset_in_progress_lock:
476 * @ioc_link_reset_in_progress: phy/hard reset in progress 476 * @ioc_link_reset_in_progress: phy/hard reset in progress
477 * @ignore_loginfos: ignore loginfos during task managment 477 * @ignore_loginfos: ignore loginfos during task management
478 * @remove_host: flag for when driver unloads, to avoid sending dev resets 478 * @remove_host: flag for when driver unloads, to avoid sending dev resets
479 * @wait_for_port_enable_to_complete: 479 * @wait_for_port_enable_to_complete:
480 * @msix_enable: flag indicating msix is enabled 480 * @msix_enable: flag indicating msix is enabled
diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
index c5ff26a2a51d..06d645a36f1b 100644
--- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c
+++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
@@ -2979,7 +2979,7 @@ _scsih_qcmd(struct scsi_cmnd *scmd, void (*done)(struct scsi_cmnd *))
2979 /* host recovery or link resets sent via IOCTLs */ 2979 /* host recovery or link resets sent via IOCTLs */
2980 if (ioc->shost_recovery || ioc->ioc_link_reset_in_progress) 2980 if (ioc->shost_recovery || ioc->ioc_link_reset_in_progress)
2981 return SCSI_MLQUEUE_HOST_BUSY; 2981 return SCSI_MLQUEUE_HOST_BUSY;
2982 /* device busy with task managment */ 2982 /* device busy with task management */
2983 else if (sas_device_priv_data->block || sas_target_priv_data->tm_busy) 2983 else if (sas_device_priv_data->block || sas_target_priv_data->tm_busy)
2984 return SCSI_MLQUEUE_DEVICE_BUSY; 2984 return SCSI_MLQUEUE_DEVICE_BUSY;
2985 /* device has been deleted */ 2985 /* device has been deleted */
@@ -6845,7 +6845,7 @@ _scsih_init(void)
6845 /* queuecommand callback hander */ 6845 /* queuecommand callback hander */
6846 scsi_io_cb_idx = mpt2sas_base_register_callback_handler(_scsih_io_done); 6846 scsi_io_cb_idx = mpt2sas_base_register_callback_handler(_scsih_io_done);
6847 6847
6848 /* task managment callback handler */ 6848 /* task management callback handler */
6849 tm_cb_idx = mpt2sas_base_register_callback_handler(_scsih_tm_done); 6849 tm_cb_idx = mpt2sas_base_register_callback_handler(_scsih_tm_done);
6850 6850
6851 /* base internal commands callback handler */ 6851 /* base internal commands callback handler */
diff --git a/drivers/scsi/pm8001/pm8001_hwi.c b/drivers/scsi/pm8001/pm8001_hwi.c
index 5ff8261c5d67..e81efac25fa4 100644
--- a/drivers/scsi/pm8001/pm8001_hwi.c
+++ b/drivers/scsi/pm8001/pm8001_hwi.c
@@ -1082,7 +1082,7 @@ static void pm8001_hw_chip_rst(struct pm8001_hba_info *pm8001_ha)
1082} 1082}
1083 1083
1084/** 1084/**
1085 * pm8001_chip_iounmap - which maped when initilized. 1085 * pm8001_chip_iounmap - which maped when initialized.
1086 * @pm8001_ha: our hba card information 1086 * @pm8001_ha: our hba card information
1087 */ 1087 */
1088static void pm8001_chip_iounmap(struct pm8001_hba_info *pm8001_ha) 1088static void pm8001_chip_iounmap(struct pm8001_hba_info *pm8001_ha)
@@ -4152,7 +4152,7 @@ static int pm8001_chip_abort_task(struct pm8001_hba_info *pm8001_ha,
4152} 4152}
4153 4153
4154/** 4154/**
4155 * pm8001_chip_ssp_tm_req - built the task managment command. 4155 * pm8001_chip_ssp_tm_req - built the task management command.
4156 * @pm8001_ha: our hba card information. 4156 * @pm8001_ha: our hba card information.
4157 * @ccb: the ccb information. 4157 * @ccb: the ccb information.
4158 * @tmf: task management function. 4158 * @tmf: task management function.
diff --git a/drivers/scsi/qla2xxx/qla_iocb.c b/drivers/scsi/qla2xxx/qla_iocb.c
index 8ef945365412..782b30d0eea1 100644
--- a/drivers/scsi/qla2xxx/qla_iocb.c
+++ b/drivers/scsi/qla2xxx/qla_iocb.c
@@ -1129,7 +1129,7 @@ qla24xx_build_scsi_crc_2_iocbs(srb_t *sp, struct cmd_type_crc_2 *cmd_pkt,
1129 cmd_pkt->fcp_cmnd_dseg_address[1] = cpu_to_le32( 1129 cmd_pkt->fcp_cmnd_dseg_address[1] = cpu_to_le32(
1130 MSD(crc_ctx_dma + CRC_CONTEXT_FCPCMND_OFF)); 1130 MSD(crc_ctx_dma + CRC_CONTEXT_FCPCMND_OFF));
1131 fcp_cmnd->task_attribute = 0; 1131 fcp_cmnd->task_attribute = 0;
1132 fcp_cmnd->task_managment = 0; 1132 fcp_cmnd->task_management = 0;
1133 1133
1134 cmd_pkt->fcp_rsp_dseg_len = 0; /* Let response come in status iocb */ 1134 cmd_pkt->fcp_rsp_dseg_len = 0; /* Let response come in status iocb */
1135 1135
diff --git a/drivers/scsi/qla2xxx/qla_nx.h b/drivers/scsi/qla2xxx/qla_nx.h
index f8f99a5ea532..1b44d013f151 100644
--- a/drivers/scsi/qla2xxx/qla_nx.h
+++ b/drivers/scsi/qla2xxx/qla_nx.h
@@ -832,7 +832,7 @@ struct fcp_cmnd {
832 struct scsi_lun lun; 832 struct scsi_lun lun;
833 uint8_t crn; 833 uint8_t crn;
834 uint8_t task_attribute; 834 uint8_t task_attribute;
835 uint8_t task_managment; 835 uint8_t task_management;
836 uint8_t additional_cdb_len; 836 uint8_t additional_cdb_len;
837 uint8_t cdb[260]; /* 256 for CDB len and 4 for FCP_DL */ 837 uint8_t cdb[260]; /* 256 for CDB len and 4 for FCP_DL */
838}; 838};
diff --git a/drivers/scsi/qla4xxx/ql4_init.c b/drivers/scsi/qla4xxx/ql4_init.c
index 5510df8a7fa6..cd3043265a6d 100644
--- a/drivers/scsi/qla4xxx/ql4_init.c
+++ b/drivers/scsi/qla4xxx/ql4_init.c
@@ -183,7 +183,7 @@ static int qla4xxx_validate_mac_address(struct scsi_qla_host *ha)
183 **/ 183 **/
184static int qla4xxx_init_local_data(struct scsi_qla_host *ha) 184static int qla4xxx_init_local_data(struct scsi_qla_host *ha)
185{ 185{
186 /* Initilize aen queue */ 186 /* Initialize aen queue */
187 ha->aen_q_count = MAX_AEN_ENTRIES; 187 ha->aen_q_count = MAX_AEN_ENTRIES;
188 188
189 return qla4xxx_get_firmware_status(ha); 189 return qla4xxx_get_firmware_status(ha);
diff --git a/drivers/scsi/scsi_transport_fc.c b/drivers/scsi/scsi_transport_fc.c
index 06813789145c..edb6b362a8fa 100644
--- a/drivers/scsi/scsi_transport_fc.c
+++ b/drivers/scsi/scsi_transport_fc.c
@@ -965,7 +965,7 @@ static FC_DEVICE_ATTR(rport, fast_io_fail_tmo, S_IRUGO | S_IWUSR,
965 965
966/* 966/*
967 * Note: in the target show function we recognize when the remote 967 * Note: in the target show function we recognize when the remote
968 * port is in the heirarchy and do not allow the driver to get 968 * port is in the hierarchy and do not allow the driver to get
969 * involved in sysfs functions. The driver only gets involved if 969 * involved in sysfs functions. The driver only gets involved if
970 * it's the "old" style that doesn't use rports. 970 * it's the "old" style that doesn't use rports.
971 */ 971 */
diff --git a/drivers/serial/68360serial.c b/drivers/serial/68360serial.c
index 24661cd5e4fb..768612f8e41e 100644
--- a/drivers/serial/68360serial.c
+++ b/drivers/serial/68360serial.c
@@ -2649,7 +2649,7 @@ static int __init rs_360_init(void)
2649 sup->tfcr = SMC_EB; 2649 sup->tfcr = SMC_EB;
2650 2650
2651 /* Set this to 1 for now, so we get single 2651 /* Set this to 1 for now, so we get single
2652 * character interrupts. Using idle charater 2652 * character interrupts. Using idle character
2653 * time requires some additional tuning. 2653 * time requires some additional tuning.
2654 */ 2654 */
2655 sup->mrblr = 1; 2655 sup->mrblr = 1;
@@ -2728,7 +2728,7 @@ static int __init rs_360_init(void)
2728 up->tfcr = SMC_EB; 2728 up->tfcr = SMC_EB;
2729 2729
2730 /* Set this to 1 for now, so we get single 2730 /* Set this to 1 for now, so we get single
2731 * character interrupts. Using idle charater 2731 * character interrupts. Using idle character
2732 * time requires some additional tuning. 2732 * time requires some additional tuning.
2733 */ 2733 */
2734 up->mrblr = 1; 2734 up->mrblr = 1;
@@ -2886,7 +2886,7 @@ int serial_console_setup( struct console *co, char *options)
2886 sup->tfcr = SMC_EB; 2886 sup->tfcr = SMC_EB;
2887 2887
2888 /* Set this to 1 for now, so we get single 2888 /* Set this to 1 for now, so we get single
2889 * character interrupts. Using idle charater 2889 * character interrupts. Using idle character
2890 * time requires some additional tuning. 2890 * time requires some additional tuning.
2891 */ 2891 */
2892 sup->mrblr = 1; 2892 sup->mrblr = 1;
diff --git a/drivers/serial/cpm_uart/cpm_uart_core.c b/drivers/serial/cpm_uart/cpm_uart_core.c
index cd6cf575902e..6016179db533 100644
--- a/drivers/serial/cpm_uart/cpm_uart_core.c
+++ b/drivers/serial/cpm_uart/cpm_uart_core.c
@@ -852,7 +852,7 @@ static void cpm_uart_init_smc(struct uart_cpm_port *pinfo)
852 */ 852 */
853 cpm_set_smc_fcr(up); 853 cpm_set_smc_fcr(up);
854 854
855 /* Using idle charater time requires some additional tuning. */ 855 /* Using idle character time requires some additional tuning. */
856 out_be16(&up->smc_mrblr, pinfo->rx_fifosize); 856 out_be16(&up->smc_mrblr, pinfo->rx_fifosize);
857 out_be16(&up->smc_maxidl, pinfo->rx_fifosize); 857 out_be16(&up->smc_maxidl, pinfo->rx_fifosize);
858 out_be16(&up->smc_brklen, 0); 858 out_be16(&up->smc_brklen, 0);
diff --git a/drivers/serial/nwpserial.c b/drivers/serial/nwpserial.c
index 3c02fa96f282..e65b0d9202a5 100644
--- a/drivers/serial/nwpserial.c
+++ b/drivers/serial/nwpserial.c
@@ -81,7 +81,7 @@ nwpserial_console_write(struct console *co, const char *s, unsigned int count)
81 81
82 uart_console_write(&up->port, s, count, nwpserial_console_putchar); 82 uart_console_write(&up->port, s, count, nwpserial_console_putchar);
83 83
84 /* wait for transmitter to become emtpy */ 84 /* wait for transmitter to become empty */
85 while ((dcr_read(up->dcr_host, UART_LSR) & UART_LSR_THRE) == 0) 85 while ((dcr_read(up->dcr_host, UART_LSR) & UART_LSR_THRE) == 0)
86 cpu_relax(); 86 cpu_relax();
87 87
diff --git a/drivers/serial/sn_console.c b/drivers/serial/sn_console.c
index 9794e0cd3dcc..7e5e5efea4e2 100644
--- a/drivers/serial/sn_console.c
+++ b/drivers/serial/sn_console.c
@@ -470,7 +470,7 @@ sn_receive_chars(struct sn_cons_port *port, unsigned long flags)
470 } 470 }
471 471
472 if (port->sc_port.state) { 472 if (port->sc_port.state) {
473 /* The serial_core stuffs are initilized, use them */ 473 /* The serial_core stuffs are initialized, use them */
474 tty = port->sc_port.state->port.tty; 474 tty = port->sc_port.state->port.tty;
475 } 475 }
476 else { 476 else {
@@ -551,11 +551,11 @@ static void sn_transmit_chars(struct sn_cons_port *port, int raw)
551 BUG_ON(!port->sc_is_asynch); 551 BUG_ON(!port->sc_is_asynch);
552 552
553 if (port->sc_port.state) { 553 if (port->sc_port.state) {
554 /* We're initilized, using serial core infrastructure */ 554 /* We're initialized, using serial core infrastructure */
555 xmit = &port->sc_port.state->xmit; 555 xmit = &port->sc_port.state->xmit;
556 } else { 556 } else {
557 /* Probably sn_sal_switch_to_asynch has been run but serial core isn't 557 /* Probably sn_sal_switch_to_asynch has been run but serial core isn't
558 * initilized yet. Just return. Writes are going through 558 * initialized yet. Just return. Writes are going through
559 * sn_sal_console_write (due to register_console) at this time. 559 * sn_sal_console_write (due to register_console) at this time.
560 */ 560 */
561 return; 561 return;
diff --git a/drivers/staging/winbond/wbusb.c b/drivers/staging/winbond/wbusb.c
index 681419d6856e..251caa052eee 100644
--- a/drivers/staging/winbond/wbusb.c
+++ b/drivers/staging/winbond/wbusb.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright 2008 Pavel Machek <pavel@suse.cz> 2 * Copyright 2008 Pavel Machek <pavel@ucw.cz>
3 * 3 *
4 * Distribute under GPLv2. 4 * Distribute under GPLv2.
5 * 5 *
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c
index 162c95a088ed..89d260d6b031 100644
--- a/drivers/usb/class/cdc-acm.c
+++ b/drivers/usb/class/cdc-acm.c
@@ -2,7 +2,7 @@
2 * cdc-acm.c 2 * cdc-acm.c
3 * 3 *
4 * Copyright (c) 1999 Armin Fuerst <fuerst@in.tum.de> 4 * Copyright (c) 1999 Armin Fuerst <fuerst@in.tum.de>
5 * Copyright (c) 1999 Pavel Machek <pavel@suse.cz> 5 * Copyright (c) 1999 Pavel Machek <pavel@ucw.cz>
6 * Copyright (c) 1999 Johannes Erdfelt <johannes@erdfelt.com> 6 * Copyright (c) 1999 Johannes Erdfelt <johannes@erdfelt.com>
7 * Copyright (c) 2000 Vojtech Pavlik <vojtech@suse.cz> 7 * Copyright (c) 2000 Vojtech Pavlik <vojtech@suse.cz>
8 * Copyright (c) 2004 Oliver Neukum <oliver@neukum.name> 8 * Copyright (c) 2004 Oliver Neukum <oliver@neukum.name>
diff --git a/drivers/usb/class/usblp.c b/drivers/usb/class/usblp.c
index 2250095db0a0..84f9e52327f2 100644
--- a/drivers/usb/class/usblp.c
+++ b/drivers/usb/class/usblp.c
@@ -2,7 +2,7 @@
2 * usblp.c 2 * usblp.c
3 * 3 *
4 * Copyright (c) 1999 Michael Gee <michael@linuxspecific.com> 4 * Copyright (c) 1999 Michael Gee <michael@linuxspecific.com>
5 * Copyright (c) 1999 Pavel Machek <pavel@suse.cz> 5 * Copyright (c) 1999 Pavel Machek <pavel@ucw.cz>
6 * Copyright (c) 2000 Randy Dunlap <rdunlap@xenotime.net> 6 * Copyright (c) 2000 Randy Dunlap <rdunlap@xenotime.net>
7 * Copyright (c) 2000 Vojtech Pavlik <vojtech@suse.cz> 7 * Copyright (c) 2000 Vojtech Pavlik <vojtech@suse.cz>
8 # Copyright (c) 2001 Pete Zaitcev <zaitcev@redhat.com> 8 # Copyright (c) 2001 Pete Zaitcev <zaitcev@redhat.com>
diff --git a/drivers/usb/host/fhci-sched.c b/drivers/usb/host/fhci-sched.c
index 4f2cbdcc0273..a42ef380e917 100644
--- a/drivers/usb/host/fhci-sched.c
+++ b/drivers/usb/host/fhci-sched.c
@@ -125,7 +125,7 @@ void fhci_transaction_confirm(struct fhci_usb *usb, struct packet *pkt)
125/* 125/*
126 * Flush all transmitted packets from BDs 126 * Flush all transmitted packets from BDs
127 * This routine is called when disabling the USB port to flush all 127 * This routine is called when disabling the USB port to flush all
128 * transmissions that are allready scheduled in the BDs 128 * transmissions that are already scheduled in the BDs
129 */ 129 */
130void fhci_flush_all_transmissions(struct fhci_usb *usb) 130void fhci_flush_all_transmissions(struct fhci_usb *usb)
131{ 131{
diff --git a/drivers/usb/serial/kl5kusb105.c b/drivers/usb/serial/kl5kusb105.c
index cdbe8bf7f674..e8a65ce45a2f 100644
--- a/drivers/usb/serial/kl5kusb105.c
+++ b/drivers/usb/serial/kl5kusb105.c
@@ -261,7 +261,7 @@ static int klsi_105_startup(struct usb_serial *serial)
261 261
262 spin_lock_init(&priv->lock); 262 spin_lock_init(&priv->lock);
263 263
264 /* priv->termios is left uninitalized until port opening */ 264 /* priv->termios is left uninitialized until port opening */
265 init_waitqueue_head(&serial->port[i]->write_wait); 265 init_waitqueue_head(&serial->port[i]->write_wait);
266 } 266 }
267 267
diff --git a/drivers/usb/wusbcore/wusbhc.c b/drivers/usb/wusbcore/wusbhc.c
index eab86e4bc770..2054d4ee9774 100644
--- a/drivers/usb/wusbcore/wusbhc.c
+++ b/drivers/usb/wusbcore/wusbhc.c
@@ -26,7 +26,7 @@
26 * the one that requires (phase B, wusbhc_b_{create,destroy}). 26 * the one that requires (phase B, wusbhc_b_{create,destroy}).
27 * 27 *
28 * This is so because usb_add_hcd() will start the HC, and thus, all 28 * This is so because usb_add_hcd() will start the HC, and thus, all
29 * the HC specific stuff has to be already initialiazed (like sysfs 29 * the HC specific stuff has to be already initialized (like sysfs
30 * thingies). 30 * thingies).
31 */ 31 */
32#include <linux/device.h> 32#include <linux/device.h>
diff --git a/drivers/uwb/wlp/wss-lc.c b/drivers/uwb/wlp/wss-lc.c
index 90accdd54c07..a005d2a03b5d 100644
--- a/drivers/uwb/wlp/wss-lc.c
+++ b/drivers/uwb/wlp/wss-lc.c
@@ -180,7 +180,7 @@ error_kobject_register:
180 * If memory was allocated for the kobject's name then it will 180 * If memory was allocated for the kobject's name then it will
181 * be freed by the kobject system during this time. 181 * be freed by the kobject system during this time.
182 * 182 *
183 * The EDA cache is removed and reinitilized when the WSS is removed. We 183 * The EDA cache is removed and reinitialized when the WSS is removed. We
184 * thus loose knowledge of members of this WSS at that time and need not do 184 * thus loose knowledge of members of this WSS at that time and need not do
185 * it here. 185 * it here.
186 */ 186 */
diff --git a/drivers/video/backlight/locomolcd.c b/drivers/video/backlight/locomolcd.c
index 7571bc26071e..d2f59015d517 100644
--- a/drivers/video/backlight/locomolcd.c
+++ b/drivers/video/backlight/locomolcd.c
@@ -2,7 +2,7 @@
2 * Backlight control code for Sharp Zaurus SL-5500 2 * Backlight control code for Sharp Zaurus SL-5500
3 * 3 *
4 * Copyright 2005 John Lenz <lenz@cs.wisc.edu> 4 * Copyright 2005 John Lenz <lenz@cs.wisc.edu>
5 * Maintainer: Pavel Machek <pavel@suse.cz> (unless John wants to :-) 5 * Maintainer: Pavel Machek <pavel@ucw.cz> (unless John wants to :-)
6 * GPL v2 6 * GPL v2
7 * 7 *
8 * This driver assumes single CPU. That's okay, because collie is 8 * This driver assumes single CPU. That's okay, because collie is
@@ -246,6 +246,6 @@ static void __exit locomolcd_exit(void)
246module_init(locomolcd_init); 246module_init(locomolcd_init);
247module_exit(locomolcd_exit); 247module_exit(locomolcd_exit);
248 248
249MODULE_AUTHOR("John Lenz <lenz@cs.wisc.edu>, Pavel Machek <pavel@suse.cz>"); 249MODULE_AUTHOR("John Lenz <lenz@cs.wisc.edu>, Pavel Machek <pavel@ucw.cz>");
250MODULE_DESCRIPTION("Collie LCD driver"); 250MODULE_DESCRIPTION("Collie LCD driver");
251MODULE_LICENSE("GPL"); 251MODULE_LICENSE("GPL");
diff --git a/drivers/video/carminefb.c b/drivers/video/carminefb.c
index d8345fcc4fe3..6b19136aa181 100644
--- a/drivers/video/carminefb.c
+++ b/drivers/video/carminefb.c
@@ -432,7 +432,7 @@ static int init_hardware(struct carmine_hw *hw)
432 u32 loops; 432 u32 loops;
433 u32 ret; 433 u32 ret;
434 434
435 /* Initalize Carmine */ 435 /* Initialize Carmine */
436 /* Sets internal clock */ 436 /* Sets internal clock */
437 c_set_hw_reg(hw, CARMINE_CTL_REG + CARMINE_CTL_REG_CLOCK_ENABLE, 437 c_set_hw_reg(hw, CARMINE_CTL_REG + CARMINE_CTL_REG_CLOCK_ENABLE,
438 CARMINE_DFLT_IP_CLOCK_ENABLE); 438 CARMINE_DFLT_IP_CLOCK_ENABLE);
diff --git a/drivers/video/tgafb.c b/drivers/video/tgafb.c
index 1b3b1c718e80..aba7686b1a32 100644
--- a/drivers/video/tgafb.c
+++ b/drivers/video/tgafb.c
@@ -305,7 +305,7 @@ tgafb_set_par(struct fb_info *info)
305 TGA_WRITE_REG(par, htimings, TGA_HORIZ_REG); 305 TGA_WRITE_REG(par, htimings, TGA_HORIZ_REG);
306 TGA_WRITE_REG(par, vtimings, TGA_VERT_REG); 306 TGA_WRITE_REG(par, vtimings, TGA_VERT_REG);
307 307
308 /* Initalise RAMDAC. */ 308 /* Initialise RAMDAC. */
309 if (tga_type == TGA_TYPE_8PLANE && tga_bus_pci) { 309 if (tga_type == TGA_TYPE_8PLANE && tga_bus_pci) {
310 310
311 /* Init BT485 RAMDAC registers. */ 311 /* Init BT485 RAMDAC registers. */
diff --git a/fs/Kconfig b/fs/Kconfig
index 5f85b5947613..3d185308ec88 100644
--- a/fs/Kconfig
+++ b/fs/Kconfig
@@ -64,7 +64,7 @@ source "fs/autofs4/Kconfig"
64source "fs/fuse/Kconfig" 64source "fs/fuse/Kconfig"
65 65
66config CUSE 66config CUSE
67 tristate "Character device in Userpace support" 67 tristate "Character device in Userspace support"
68 depends on FUSE_FS 68 depends on FUSE_FS
69 help 69 help
70 This FUSE extension allows character devices to be 70 This FUSE extension allows character devices to be
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
index 34ddda888e63..dc39d2824885 100644
--- a/fs/befs/linuxvfs.c
+++ b/fs/befs/linuxvfs.c
@@ -436,7 +436,7 @@ befs_init_inodecache(void)
436 init_once); 436 init_once);
437 if (befs_inode_cachep == NULL) { 437 if (befs_inode_cachep == NULL) {
438 printk(KERN_ERR "befs_init_inodecache: " 438 printk(KERN_ERR "befs_init_inodecache: "
439 "Couldn't initalize inode slabcache\n"); 439 "Couldn't initialize inode slabcache\n");
440 return -ENOMEM; 440 return -ENOMEM;
441 } 441 }
442 442
diff --git a/fs/compat.c b/fs/compat.c
index 6490d2134ff3..c6fda9aeb864 100644
--- a/fs/compat.c
+++ b/fs/compat.c
@@ -8,7 +8,7 @@
8 * Copyright (C) 1997-2000 Jakub Jelinek (jakub@redhat.com) 8 * Copyright (C) 1997-2000 Jakub Jelinek (jakub@redhat.com)
9 * Copyright (C) 1998 Eddie C. Dost (ecd@skynet.be) 9 * Copyright (C) 1998 Eddie C. Dost (ecd@skynet.be)
10 * Copyright (C) 2001,2002 Andi Kleen, SuSE Labs 10 * Copyright (C) 2001,2002 Andi Kleen, SuSE Labs
11 * Copyright (C) 2003 Pavel Machek (pavel@suse.cz) 11 * Copyright (C) 2003 Pavel Machek (pavel@ucw.cz)
12 * 12 *
13 * This program is free software; you can redistribute it and/or modify 13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License version 2 as 14 * it under the terms of the GNU General Public License version 2 as
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
index 641640dc7ae5..5ead3763bba5 100644
--- a/fs/compat_ioctl.c
+++ b/fs/compat_ioctl.c
@@ -4,7 +4,7 @@
4 * Copyright (C) 1997-2000 Jakub Jelinek (jakub@redhat.com) 4 * Copyright (C) 1997-2000 Jakub Jelinek (jakub@redhat.com)
5 * Copyright (C) 1998 Eddie C. Dost (ecd@skynet.be) 5 * Copyright (C) 1998 Eddie C. Dost (ecd@skynet.be)
6 * Copyright (C) 2001,2002 Andi Kleen, SuSE Labs 6 * Copyright (C) 2001,2002 Andi Kleen, SuSE Labs
7 * Copyright (C) 2003 Pavel Machek (pavel@suse.cz) 7 * Copyright (C) 2003 Pavel Machek (pavel@ucw.cz)
8 * 8 *
9 * These routines maintain argument size conversion between 32bit and 64bit 9 * These routines maintain argument size conversion between 32bit and 64bit
10 * ioctls. 10 * ioctls.
diff --git a/fs/ecryptfs/crypto.c b/fs/ecryptfs/crypto.c
index 1cc087635a5e..a2e3b562e65d 100644
--- a/fs/ecryptfs/crypto.c
+++ b/fs/ecryptfs/crypto.c
@@ -762,7 +762,7 @@ ecryptfs_decrypt_page_offset(struct ecryptfs_crypt_stat *crypt_stat,
762 762
763/** 763/**
764 * ecryptfs_init_crypt_ctx 764 * ecryptfs_init_crypt_ctx
765 * @crypt_stat: Uninitilized crypt stats structure 765 * @crypt_stat: Uninitialized crypt stats structure
766 * 766 *
767 * Initialize the crypto context. 767 * Initialize the crypto context.
768 * 768 *
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c
index 377309c1af65..bf029c7d5518 100644
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -2937,7 +2937,7 @@ fix_extent_len:
2937 * One of more index blocks maybe needed if the extent tree grow after 2937 * One of more index blocks maybe needed if the extent tree grow after
2938 * the unintialized extent split. To prevent ENOSPC occur at the IO 2938 * the unintialized extent split. To prevent ENOSPC occur at the IO
2939 * complete, we need to split the uninitialized extent before DIO submit 2939 * complete, we need to split the uninitialized extent before DIO submit
2940 * the IO. The uninitilized extent called at this time will be split 2940 * the IO. The uninitialized extent called at this time will be split
2941 * into three uninitialized extent(at most). After IO complete, the part 2941 * into three uninitialized extent(at most). After IO complete, the part
2942 * being filled will be convert to initialized by the end_io callback function 2942 * being filled will be convert to initialized by the end_io callback function
2943 * via ext4_convert_unwritten_extents(). 2943 * via ext4_convert_unwritten_extents().
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index 12b3bc026a68..0e83dfd351d5 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -2704,7 +2704,7 @@ void exit_ext4_mballoc(void)
2704 2704
2705 2705
2706/* 2706/*
2707 * Check quota and mark choosed space (ac->ac_b_ex) non-free in bitmaps 2707 * Check quota and mark chosen space (ac->ac_b_ex) non-free in bitmaps
2708 * Returns 0 if success or error code 2708 * Returns 0 if success or error code
2709 */ 2709 */
2710static noinline_for_stack int 2710static noinline_for_stack int
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 4e8983a9811b..e72d3235b2fd 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -3010,7 +3010,7 @@ no_journal:
3010 ext4_ext_init(sb); 3010 ext4_ext_init(sb);
3011 err = ext4_mb_init(sb, needs_recovery); 3011 err = ext4_mb_init(sb, needs_recovery);
3012 if (err) { 3012 if (err) {
3013 ext4_msg(sb, KERN_ERR, "failed to initalize mballoc (%d)", 3013 ext4_msg(sb, KERN_ERR, "failed to initialize mballoc (%d)",
3014 err); 3014 err);
3015 goto failed_mount4; 3015 goto failed_mount4;
3016 } 3016 }
diff --git a/fs/freevxfs/vxfs_super.c b/fs/freevxfs/vxfs_super.c
index 1e8af939b3e4..5132c99b1ca2 100644
--- a/fs/freevxfs/vxfs_super.c
+++ b/fs/freevxfs/vxfs_super.c
@@ -135,7 +135,7 @@ static int vxfs_remount(struct super_block *sb, int *flags, char *data)
135} 135}
136 136
137/** 137/**
138 * vxfs_read_super - read superblock into memory and initalize filesystem 138 * vxfs_read_super - read superblock into memory and initialize filesystem
139 * @sbp: VFS superblock (to fill) 139 * @sbp: VFS superblock (to fill)
140 * @dp: fs private mount data 140 * @dp: fs private mount data
141 * @silent: do not complain loudly when sth is wrong 141 * @silent: do not complain loudly when sth is wrong
diff --git a/fs/ncpfs/inode.c b/fs/ncpfs/inode.c
index fa3385154023..1e634deff941 100644
--- a/fs/ncpfs/inode.c
+++ b/fs/ncpfs/inode.c
@@ -728,8 +728,8 @@ out_fput:
728out_bdi: 728out_bdi:
729 /* 23/12/1998 Marcin Dalecki <dalecki@cs.net.pl>: 729 /* 23/12/1998 Marcin Dalecki <dalecki@cs.net.pl>:
730 * 730 *
731 * The previously used put_filp(ncp_filp); was bogous, since 731 * The previously used put_filp(ncp_filp); was bogus, since
732 * it doesn't proper unlocking. 732 * it doesn't perform proper unlocking.
733 */ 733 */
734 fput(ncp_filp); 734 fput(ncp_filp);
735out: 735out:
diff --git a/fs/ocfs2/dlm/dlmdebug.c b/fs/ocfs2/dlm/dlmdebug.c
index 0cd24cf54396..5efdd37dfe48 100644
--- a/fs/ocfs2/dlm/dlmdebug.c
+++ b/fs/ocfs2/dlm/dlmdebug.c
@@ -419,7 +419,7 @@ static loff_t debug_buffer_llseek(struct file *file, loff_t off, int whence)
419 419
420static int debug_buffer_release(struct inode *inode, struct file *file) 420static int debug_buffer_release(struct inode *inode, struct file *file)
421{ 421{
422 struct debug_buffer *db = (struct debug_buffer *)file->private_data; 422 struct debug_buffer *db = file->private_data;
423 423
424 if (db) 424 if (db)
425 kfree(db->buf); 425 kfree(db->buf);
@@ -715,7 +715,7 @@ static int debug_lockres_open(struct inode *inode, struct file *file)
715 goto bail; 715 goto bail;
716 } 716 }
717 717
718 seq = (struct seq_file *) file->private_data; 718 seq = file->private_data;
719 seq->private = dl; 719 seq->private = dl;
720 720
721 dlm_grab(dlm); 721 dlm_grab(dlm);
@@ -731,7 +731,7 @@ bail:
731 731
732static int debug_lockres_release(struct inode *inode, struct file *file) 732static int debug_lockres_release(struct inode *inode, struct file *file)
733{ 733{
734 struct seq_file *seq = (struct seq_file *)file->private_data; 734 struct seq_file *seq = file->private_data;
735 struct debug_lockres *dl = (struct debug_lockres *)seq->private; 735 struct debug_lockres *dl = (struct debug_lockres *)seq->private;
736 736
737 if (dl->dl_res) 737 if (dl->dl_res)
diff --git a/fs/ocfs2/dlmfs/dlmfs.c b/fs/ocfs2/dlmfs/dlmfs.c
index b83d6107a1f5..bef34d0528d5 100644
--- a/fs/ocfs2/dlmfs/dlmfs.c
+++ b/fs/ocfs2/dlmfs/dlmfs.c
@@ -182,8 +182,7 @@ static int dlmfs_file_release(struct inode *inode,
182{ 182{
183 int level, status; 183 int level, status;
184 struct dlmfs_inode_private *ip = DLMFS_I(inode); 184 struct dlmfs_inode_private *ip = DLMFS_I(inode);
185 struct dlmfs_filp_private *fp = 185 struct dlmfs_filp_private *fp = file->private_data;
186 (struct dlmfs_filp_private *) file->private_data;
187 186
188 if (S_ISDIR(inode->i_mode)) 187 if (S_ISDIR(inode->i_mode))
189 BUG(); 188 BUG();
diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c
index 39eb16ac5f98..5e02a893f46e 100644
--- a/fs/ocfs2/dlmglue.c
+++ b/fs/ocfs2/dlmglue.c
@@ -2966,7 +2966,7 @@ static const struct seq_operations ocfs2_dlm_seq_ops = {
2966 2966
2967static int ocfs2_dlm_debug_release(struct inode *inode, struct file *file) 2967static int ocfs2_dlm_debug_release(struct inode *inode, struct file *file)
2968{ 2968{
2969 struct seq_file *seq = (struct seq_file *) file->private_data; 2969 struct seq_file *seq = file->private_data;
2970 struct ocfs2_dlm_seq_priv *priv = seq->private; 2970 struct ocfs2_dlm_seq_priv *priv = seq->private;
2971 struct ocfs2_lock_res *res = &priv->p_iter_res; 2971 struct ocfs2_lock_res *res = &priv->p_iter_res;
2972 2972
@@ -3000,7 +3000,7 @@ static int ocfs2_dlm_debug_open(struct inode *inode, struct file *file)
3000 goto out; 3000 goto out;
3001 } 3001 }
3002 3002
3003 seq = (struct seq_file *) file->private_data; 3003 seq = file->private_data;
3004 seq->private = priv; 3004 seq->private = priv;
3005 3005
3006 ocfs2_add_lockres_tracking(&priv->p_iter_res, 3006 ocfs2_add_lockres_tracking(&priv->p_iter_res,
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c
index 0eaa929a4dbf..03a799fdd740 100644
--- a/fs/ocfs2/super.c
+++ b/fs/ocfs2/super.c
@@ -2472,7 +2472,7 @@ static void ocfs2_delete_osb(struct ocfs2_super *osb)
2472 kfree(osb->slot_recovery_generations); 2472 kfree(osb->slot_recovery_generations);
2473 /* FIXME 2473 /* FIXME
2474 * This belongs in journal shutdown, but because we have to 2474 * This belongs in journal shutdown, but because we have to
2475 * allocate osb->journal at the start of ocfs2_initalize_osb(), 2475 * allocate osb->journal at the start of ocfs2_initialize_osb(),
2476 * we free it here. 2476 * we free it here.
2477 */ 2477 */
2478 kfree(osb->journal); 2478 kfree(osb->journal);
diff --git a/fs/reiserfs/inode.c b/fs/reiserfs/inode.c
index 0f22fdaf54ac..29db72203bde 100644
--- a/fs/reiserfs/inode.c
+++ b/fs/reiserfs/inode.c
@@ -1221,7 +1221,7 @@ static void init_inode(struct inode *inode, struct treepath *path)
1221 inode_set_bytes(inode, 1221 inode_set_bytes(inode,
1222 to_real_used_space(inode, inode->i_blocks, 1222 to_real_used_space(inode, inode->i_blocks,
1223 SD_V2_SIZE)); 1223 SD_V2_SIZE));
1224 /* read persistent inode attributes from sd and initalise 1224 /* read persistent inode attributes from sd and initialise
1225 generic inode flags from them */ 1225 generic inode flags from them */
1226 REISERFS_I(inode)->i_attrs = sd_v2_attrs(sd); 1226 REISERFS_I(inode)->i_attrs = sd_v2_attrs(sd);
1227 sd_attrs_to_i_attrs(sd_v2_attrs(sd), inode); 1227 sd_attrs_to_i_attrs(sd_v2_attrs(sd), inode);
diff --git a/include/linux/fscache.h b/include/linux/fscache.h
index 595ce49288b7..ec0dad5ab90f 100644
--- a/include/linux/fscache.h
+++ b/include/linux/fscache.h
@@ -85,7 +85,7 @@ struct fscache_cookie_def {
85 85
86 /* get an index key 86 /* get an index key
87 * - should store the key data in the buffer 87 * - should store the key data in the buffer
88 * - should return the amount of amount stored 88 * - should return the amount of data stored
89 * - not permitted to return an error 89 * - not permitted to return an error
90 * - the netfs data from the cookie being used as the source is 90 * - the netfs data from the cookie being used as the source is
91 * presented 91 * presented
@@ -454,6 +454,7 @@ int fscache_read_or_alloc_page(struct fscache_cookie *cookie,
454 * @cookie: The cookie representing the cache object 454 * @cookie: The cookie representing the cache object
455 * @mapping: The netfs inode mapping to which the pages will be attached 455 * @mapping: The netfs inode mapping to which the pages will be attached
456 * @pages: A list of potential netfs pages to be filled 456 * @pages: A list of potential netfs pages to be filled
457 * @nr_pages: Number of pages to be read and/or allocated
457 * @end_io_func: The callback to invoke when and if each page is filled 458 * @end_io_func: The callback to invoke when and if each page is filled
458 * @context: An arbitrary piece of data to pass on to end_io_func() 459 * @context: An arbitrary piece of data to pass on to end_io_func()
459 * @gfp: The conditions under which memory allocation should be made 460 * @gfp: The conditions under which memory allocation should be made
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 7b02aa5ce9b4..072fe8c93e6f 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -458,7 +458,7 @@ enum {
458 IDE_DFLAG_DOORLOCKING = (1 << 15), 458 IDE_DFLAG_DOORLOCKING = (1 << 15),
459 /* disallow DMA */ 459 /* disallow DMA */
460 IDE_DFLAG_NODMA = (1 << 16), 460 IDE_DFLAG_NODMA = (1 << 16),
461 /* powermanagment told us not to do anything, so sleep nicely */ 461 /* powermanagement told us not to do anything, so sleep nicely */
462 IDE_DFLAG_BLOCKED = (1 << 17), 462 IDE_DFLAG_BLOCKED = (1 << 17),
463 /* sleeping & sleep field valid */ 463 /* sleeping & sleep field valid */
464 IDE_DFLAG_SLEEPING = (1 << 18), 464 IDE_DFLAG_SLEEPING = (1 << 18),
diff --git a/include/linux/if_link.h b/include/linux/if_link.h
index 85c812db5a3f..9d8f0807daed 100644
--- a/include/linux/if_link.h
+++ b/include/linux/if_link.h
@@ -233,7 +233,7 @@ enum macvlan_mode {
233 MACVLAN_MODE_BRIDGE = 4, /* talk to bridge ports directly */ 233 MACVLAN_MODE_BRIDGE = 4, /* talk to bridge ports directly */
234}; 234};
235 235
236/* SR-IOV virtual function managment section */ 236/* SR-IOV virtual function management section */
237 237
238enum { 238enum {
239 IFLA_VF_INFO_UNSPEC, 239 IFLA_VF_INFO_UNSPEC,
diff --git a/include/linux/jffs2.h b/include/linux/jffs2.h
index 0874ab59ffef..edb9231f1898 100644
--- a/include/linux/jffs2.h
+++ b/include/linux/jffs2.h
@@ -185,7 +185,7 @@ struct jffs2_raw_xref
185 jint32_t hdr_crc; 185 jint32_t hdr_crc;
186 jint32_t ino; /* inode number */ 186 jint32_t ino; /* inode number */
187 jint32_t xid; /* XATTR identifier number */ 187 jint32_t xid; /* XATTR identifier number */
188 jint32_t xseqno; /* xref sequencial number */ 188 jint32_t xseqno; /* xref sequential number */
189 jint32_t node_crc; 189 jint32_t node_crc;
190} __attribute__((packed)); 190} __attribute__((packed));
191 191
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 8317ec4b9f3b..bd8501a8ca1c 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -728,12 +728,6 @@ extern int do_sysinfo(struct sysinfo *info);
728 728
729#endif /* __KERNEL__ */ 729#endif /* __KERNEL__ */
730 730
731#ifndef __EXPORTED_HEADERS__
732#ifndef __KERNEL__
733#warning Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders
734#endif /* __KERNEL__ */
735#endif /* __EXPORTED_HEADERS__ */
736
737#define SI_LOAD_SHIFT 16 731#define SI_LOAD_SHIFT 16
738struct sysinfo { 732struct sysinfo {
739 long uptime; /* Seconds since boot */ 733 long uptime; /* Seconds since boot */
diff --git a/include/linux/lru_cache.h b/include/linux/lru_cache.h
index de48d167568b..78fbf24f357a 100644
--- a/include/linux/lru_cache.h
+++ b/include/linux/lru_cache.h
@@ -262,7 +262,7 @@ extern void lc_seq_dump_details(struct seq_file *seq, struct lru_cache *lc, char
262 * @lc: the lru cache to operate on 262 * @lc: the lru cache to operate on
263 * 263 *
264 * Note that the reference counts and order on the active and lru lists may 264 * Note that the reference counts and order on the active and lru lists may
265 * still change. Returns true if we aquired the lock. 265 * still change. Returns true if we acquired the lock.
266 */ 266 */
267static inline int lc_try_lock(struct lru_cache *lc) 267static inline int lc_try_lock(struct lru_cache *lc)
268{ 268{
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index b21e4054c12c..50d09aa6d21c 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -775,7 +775,7 @@ struct net_device {
775 /* 775 /*
776 * This is the first field of the "visible" part of this structure 776 * This is the first field of the "visible" part of this structure
777 * (i.e. as seen by users in the "Space.c" file). It is the name 777 * (i.e. as seen by users in the "Space.c" file). It is the name
778 * the interface. 778 * of the interface.
779 */ 779 */
780 char name[IFNAMSIZ]; 780 char name[IFNAMSIZ];
781 781
diff --git a/include/linux/reiserfs_fs.h b/include/linux/reiserfs_fs.h
index 3b603f474186..ba394163dea1 100644
--- a/include/linux/reiserfs_fs.h
+++ b/include/linux/reiserfs_fs.h
@@ -360,7 +360,7 @@ int is_reiserfs_jr(struct reiserfs_super_block *rs);
360/* the spot for the super in versions 3.5 - 3.5.10 (inclusive) */ 360/* the spot for the super in versions 3.5 - 3.5.10 (inclusive) */
361#define REISERFS_OLD_DISK_OFFSET_IN_BYTES (8 * 1024) 361#define REISERFS_OLD_DISK_OFFSET_IN_BYTES (8 * 1024)
362 362
363// reiserfs internal error code (used by search_by_key adn fix_nodes)) 363/* reiserfs internal error code (used by search_by_key and fix_nodes)) */
364#define CARRY_ON 0 364#define CARRY_ON 0
365#define REPEAT_SEARCH -1 365#define REPEAT_SEARCH -1
366#define IO_ERROR -2 366#define IO_ERROR -2
diff --git a/include/linux/types.h b/include/linux/types.h
index 23d237a075e2..331d8baabcf2 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -8,7 +8,10 @@
8 8
9#define DECLARE_BITMAP(name,bits) \ 9#define DECLARE_BITMAP(name,bits) \
10 unsigned long name[BITS_TO_LONGS(bits)] 10 unsigned long name[BITS_TO_LONGS(bits)]
11 11#else
12#ifndef __EXPORTED_HEADERS__
13#warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders"
14#endif /* __EXPORTED_HEADERS__ */
12#endif 15#endif
13 16
14#include <linux/posix_types.h> 17#include <linux/posix_types.h>
diff --git a/kernel/cpuset.c b/kernel/cpuset.c
index 02b9611eadde..7cb37d86a005 100644
--- a/kernel/cpuset.c
+++ b/kernel/cpuset.c
@@ -105,7 +105,7 @@ struct cpuset {
105 /* for custom sched domain */ 105 /* for custom sched domain */
106 int relax_domain_level; 106 int relax_domain_level;
107 107
108 /* used for walking a cpuset heirarchy */ 108 /* used for walking a cpuset hierarchy */
109 struct list_head stack_list; 109 struct list_head stack_list;
110}; 110};
111 111
diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c
index 8bc5eeffec8a..51d14fe87648 100644
--- a/kernel/debug/debug_core.c
+++ b/kernel/debug/debug_core.c
@@ -6,7 +6,7 @@
6 * Copyright (C) 2000-2001 VERITAS Software Corporation. 6 * Copyright (C) 2000-2001 VERITAS Software Corporation.
7 * Copyright (C) 2002-2004 Timesys Corporation 7 * Copyright (C) 2002-2004 Timesys Corporation
8 * Copyright (C) 2003-2004 Amit S. Kale <amitkale@linsyssoft.com> 8 * Copyright (C) 2003-2004 Amit S. Kale <amitkale@linsyssoft.com>
9 * Copyright (C) 2004 Pavel Machek <pavel@suse.cz> 9 * Copyright (C) 2004 Pavel Machek <pavel@ucw.cz>
10 * Copyright (C) 2004-2006 Tom Rini <trini@kernel.crashing.org> 10 * Copyright (C) 2004-2006 Tom Rini <trini@kernel.crashing.org>
11 * Copyright (C) 2004-2006 LinSysSoft Technologies Pvt. Ltd. 11 * Copyright (C) 2004-2006 LinSysSoft Technologies Pvt. Ltd.
12 * Copyright (C) 2005-2009 Wind River Systems, Inc. 12 * Copyright (C) 2005-2009 Wind River Systems, Inc.
diff --git a/kernel/debug/gdbstub.c b/kernel/debug/gdbstub.c
index e8fd6868682d..6e81fd59566b 100644
--- a/kernel/debug/gdbstub.c
+++ b/kernel/debug/gdbstub.c
@@ -6,7 +6,7 @@
6 * Copyright (C) 2000-2001 VERITAS Software Corporation. 6 * Copyright (C) 2000-2001 VERITAS Software Corporation.
7 * Copyright (C) 2002-2004 Timesys Corporation 7 * Copyright (C) 2002-2004 Timesys Corporation
8 * Copyright (C) 2003-2004 Amit S. Kale <amitkale@linsyssoft.com> 8 * Copyright (C) 2003-2004 Amit S. Kale <amitkale@linsyssoft.com>
9 * Copyright (C) 2004 Pavel Machek <pavel@suse.cz> 9 * Copyright (C) 2004 Pavel Machek <pavel@ucw.cz>
10 * Copyright (C) 2004-2006 Tom Rini <trini@kernel.crashing.org> 10 * Copyright (C) 2004-2006 Tom Rini <trini@kernel.crashing.org>
11 * Copyright (C) 2004-2006 LinSysSoft Technologies Pvt. Ltd. 11 * Copyright (C) 2004-2006 LinSysSoft Technologies Pvt. Ltd.
12 * Copyright (C) 2005-2009 Wind River Systems, Inc. 12 * Copyright (C) 2005-2009 Wind River Systems, Inc.
diff --git a/kernel/power/hibernate.c b/kernel/power/hibernate.c
index aa9e916da4d5..6b202e7f8b53 100644
--- a/kernel/power/hibernate.c
+++ b/kernel/power/hibernate.c
@@ -3,7 +3,7 @@
3 * 3 *
4 * Copyright (c) 2003 Patrick Mochel 4 * Copyright (c) 2003 Patrick Mochel
5 * Copyright (c) 2003 Open Source Development Lab 5 * Copyright (c) 2003 Open Source Development Lab
6 * Copyright (c) 2004 Pavel Machek <pavel@suse.cz> 6 * Copyright (c) 2004 Pavel Machek <pavel@ucw.cz>
7 * Copyright (c) 2009 Rafael J. Wysocki, Novell Inc. 7 * Copyright (c) 2009 Rafael J. Wysocki, Novell Inc.
8 * 8 *
9 * This file is released under the GPLv2. 9 * This file is released under the GPLv2.
diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c
index 25ce010e9f8b..f6cd6faf84fd 100644
--- a/kernel/power/snapshot.c
+++ b/kernel/power/snapshot.c
@@ -3,7 +3,7 @@
3 * 3 *
4 * This file provides system snapshot/restore functionality for swsusp. 4 * This file provides system snapshot/restore functionality for swsusp.
5 * 5 *
6 * Copyright (C) 1998-2005 Pavel Machek <pavel@suse.cz> 6 * Copyright (C) 1998-2005 Pavel Machek <pavel@ucw.cz>
7 * Copyright (C) 2006 Rafael J. Wysocki <rjw@sisk.pl> 7 * Copyright (C) 2006 Rafael J. Wysocki <rjw@sisk.pl>
8 * 8 *
9 * This file is released under the GPLv2. 9 * This file is released under the GPLv2.
diff --git a/kernel/power/swap.c b/kernel/power/swap.c
index b0bb21778391..48a0aa9da162 100644
--- a/kernel/power/swap.c
+++ b/kernel/power/swap.c
@@ -4,7 +4,7 @@
4 * This file provides functions for reading the suspend image from 4 * This file provides functions for reading the suspend image from
5 * and writing it to a swap partition. 5 * and writing it to a swap partition.
6 * 6 *
7 * Copyright (C) 1998,2001-2005 Pavel Machek <pavel@suse.cz> 7 * Copyright (C) 1998,2001-2005 Pavel Machek <pavel@ucw.cz>
8 * Copyright (C) 2006 Rafael J. Wysocki <rjw@sisk.pl> 8 * Copyright (C) 2006 Rafael J. Wysocki <rjw@sisk.pl>
9 * 9 *
10 * This file is released under the GPLv2. 10 * This file is released under the GPLv2.
diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c
index b3bafd5fc66d..48b2761b5668 100644
--- a/kernel/time/tick-broadcast.c
+++ b/kernel/time/tick-broadcast.c
@@ -188,7 +188,7 @@ static void tick_handle_periodic_broadcast(struct clock_event_device *dev)
188 /* 188 /*
189 * Setup the next period for devices, which do not have 189 * Setup the next period for devices, which do not have
190 * periodic mode. We read dev->next_event first and add to it 190 * periodic mode. We read dev->next_event first and add to it
191 * when the event alrady expired. clockevents_program_event() 191 * when the event already expired. clockevents_program_event()
192 * sets dev->next_event only when the event is really 192 * sets dev->next_event only when the event is really
193 * programmed to the device. 193 * programmed to the device.
194 */ 194 */
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index e722e9d62221..dfdc0347b05d 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -937,7 +937,7 @@ config FAIL_MAKE_REQUEST
937 Provide fault-injection capability for disk IO. 937 Provide fault-injection capability for disk IO.
938 938
939config FAIL_IO_TIMEOUT 939config FAIL_IO_TIMEOUT
940 bool "Faul-injection capability for faking disk interrupts" 940 bool "Fault-injection capability for faking disk interrupts"
941 depends on FAULT_INJECTION && BLOCK 941 depends on FAULT_INJECTION && BLOCK
942 help 942 help
943 Provide fault-injection capability on end IO handling. This 943 Provide fault-injection capability on end IO handling. This
diff --git a/lib/devres.c b/lib/devres.c
index 49368608f988..6efddf53b90c 100644
--- a/lib/devres.c
+++ b/lib/devres.c
@@ -328,7 +328,7 @@ EXPORT_SYMBOL(pcim_iomap_regions_request_all);
328 * @pdev: PCI device to map IO resources for 328 * @pdev: PCI device to map IO resources for
329 * @mask: Mask of BARs to unmap and release 329 * @mask: Mask of BARs to unmap and release
330 * 330 *
331 * Unamp and release regions specified by @mask. 331 * Unmap and release regions specified by @mask.
332 */ 332 */
333void pcim_iounmap_regions(struct pci_dev *pdev, u16 mask) 333void pcim_iounmap_regions(struct pci_dev *pdev, u16 mask)
334{ 334{
diff --git a/lib/random32.c b/lib/random32.c
index 870dc3fc0f0f..fc3545a32771 100644
--- a/lib/random32.c
+++ b/lib/random32.c
@@ -127,7 +127,7 @@ core_initcall(random32_init);
127 127
128/* 128/*
129 * Generate better values after random number generator 129 * Generate better values after random number generator
130 * is fully initalized. 130 * is fully initialized.
131 */ 131 */
132static int __init random32_reseed(void) 132static int __init random32_reseed(void)
133{ 133{
diff --git a/net/ipv6/netfilter/nf_conntrack_reasm.c b/net/ipv6/netfilter/nf_conntrack_reasm.c
index 6fb890187de0..4dc8805154ee 100644
--- a/net/ipv6/netfilter/nf_conntrack_reasm.c
+++ b/net/ipv6/netfilter/nf_conntrack_reasm.c
@@ -201,7 +201,7 @@ static int nf_ct_frag6_queue(struct nf_ct_frag6_queue *fq, struct sk_buff *skb,
201 int offset, end; 201 int offset, end;
202 202
203 if (fq->q.last_in & INET_FRAG_COMPLETE) { 203 if (fq->q.last_in & INET_FRAG_COMPLETE) {
204 pr_debug("Allready completed\n"); 204 pr_debug("Already completed\n");
205 goto err; 205 goto err;
206 } 206 }
207 207
diff --git a/net/netfilter/ipvs/ip_vs_lblc.c b/net/netfilter/ipvs/ip_vs_lblc.c
index 94a45213faa6..9323f8944199 100644
--- a/net/netfilter/ipvs/ip_vs_lblc.c
+++ b/net/netfilter/ipvs/ip_vs_lblc.c
@@ -11,7 +11,7 @@
11 * Changes: 11 * Changes:
12 * Martin Hamilton : fixed the terrible locking bugs 12 * Martin Hamilton : fixed the terrible locking bugs
13 * *lock(tbl->lock) ==> *lock(&tbl->lock) 13 * *lock(tbl->lock) ==> *lock(&tbl->lock)
14 * Wensong Zhang : fixed the uninitilized tbl->lock bug 14 * Wensong Zhang : fixed the uninitialized tbl->lock bug
15 * Wensong Zhang : added doing full expiration check to 15 * Wensong Zhang : added doing full expiration check to
16 * collect stale entries of 24+ hours when 16 * collect stale entries of 24+ hours when
17 * no partial expire check in a half hour 17 * no partial expire check in a half hour
diff --git a/net/netfilter/ipvs/ip_vs_lblcr.c b/net/netfilter/ipvs/ip_vs_lblcr.c
index 535dc2b419d8..dbeed8ea421a 100644
--- a/net/netfilter/ipvs/ip_vs_lblcr.c
+++ b/net/netfilter/ipvs/ip_vs_lblcr.c
@@ -386,7 +386,7 @@ ip_vs_lblcr_new(struct ip_vs_lblcr_table *tbl, const union nf_inet_addr *daddr,
386 ip_vs_addr_copy(dest->af, &en->addr, daddr); 386 ip_vs_addr_copy(dest->af, &en->addr, daddr);
387 en->lastuse = jiffies; 387 en->lastuse = jiffies;
388 388
389 /* initilize its dest set */ 389 /* initialize its dest set */
390 atomic_set(&(en->set.size), 0); 390 atomic_set(&(en->set.size), 0);
391 INIT_LIST_HEAD(&en->set.list); 391 INIT_LIST_HEAD(&en->set.list);
392 rwlock_init(&en->set.lock); 392 rwlock_init(&en->set.lock);
diff --git a/net/sctp/associola.c b/net/sctp/associola.c
index e41feff19e43..0b85e5256434 100644
--- a/net/sctp/associola.c
+++ b/net/sctp/associola.c
@@ -172,7 +172,7 @@ static struct sctp_association *sctp_association_init(struct sctp_association *a
172 asoc->timeouts[SCTP_EVENT_TIMEOUT_AUTOCLOSE] = 172 asoc->timeouts[SCTP_EVENT_TIMEOUT_AUTOCLOSE] =
173 (unsigned long)sp->autoclose * HZ; 173 (unsigned long)sp->autoclose * HZ;
174 174
175 /* Initilizes the timers */ 175 /* Initializes the timers */
176 for (i = SCTP_EVENT_TIMEOUT_NONE; i < SCTP_NUM_TIMEOUT_TYPES; ++i) 176 for (i = SCTP_EVENT_TIMEOUT_NONE; i < SCTP_NUM_TIMEOUT_TYPES; ++i)
177 setup_timer(&asoc->timers[i], sctp_timer_events[i], 177 setup_timer(&asoc->timers[i], sctp_timer_events[i],
178 (unsigned long)asoc); 178 (unsigned long)asoc);
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index 182749867c72..0f41b05bd4d6 100644
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
@@ -1162,7 +1162,7 @@ SCTP_STATIC __init int sctp_init(void)
1162 /* Set the pressure threshold to be a fraction of global memory that 1162 /* Set the pressure threshold to be a fraction of global memory that
1163 * is up to 1/2 at 256 MB, decreasing toward zero with the amount of 1163 * is up to 1/2 at 256 MB, decreasing toward zero with the amount of
1164 * memory, with a floor of 128 pages. 1164 * memory, with a floor of 128 pages.
1165 * Note this initalizes the data in sctpv6_prot too 1165 * Note this initializes the data in sctpv6_prot too
1166 * Unabashedly stolen from tcp_init 1166 * Unabashedly stolen from tcp_init
1167 */ 1167 */
1168 nr_pages = totalram_pages - totalhigh_pages; 1168 nr_pages = totalram_pages - totalhigh_pages;
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c
index 0f2fc480fc61..276bdc7325e5 100644
--- a/security/smack/smack_lsm.c
+++ b/security/smack/smack_lsm.c
@@ -3227,7 +3227,7 @@ static __init int smack_init(void)
3227 cred = (struct cred *) current->cred; 3227 cred = (struct cred *) current->cred;
3228 cred->security = &smack_known_floor.smk_known; 3228 cred->security = &smack_known_floor.smk_known;
3229 3229
3230 /* initilize the smack_know_list */ 3230 /* initialize the smack_know_list */
3231 init_smack_know_list(); 3231 init_smack_know_list();
3232 /* 3232 /*
3233 * Initialize locks 3233 * Initialize locks
diff --git a/sound/drivers/Kconfig b/sound/drivers/Kconfig
index 84714a65e5c8..c290cee4cee8 100644
--- a/sound/drivers/Kconfig
+++ b/sound/drivers/Kconfig
@@ -155,7 +155,7 @@ config SND_ML403_AC97CR
155 select SND_AC97_CODEC 155 select SND_AC97_CODEC
156 help 156 help
157 Say Y here to include support for the 157 Say Y here to include support for the
158 opb_ac97_controller_ref_v1_00_a ip core found in Xilinx' ML403 158 opb_ac97_controller_ref_v1_00_a ip core found in Xilinx's ML403
159 reference design. 159 reference design.
160 160
161 To compile this driver as a module, choose M here: the module 161 To compile this driver as a module, choose M here: the module
diff --git a/sound/pci/trident/trident_main.c b/sound/pci/trident/trident_main.c
index 6d943f6f6b70..2870a4fdc130 100644
--- a/sound/pci/trident/trident_main.c
+++ b/sound/pci/trident/trident_main.c
@@ -1055,7 +1055,7 @@ static int snd_trident_capture_prepare(struct snd_pcm_substream *substream)
1055 1055
1056 spin_lock_irq(&trident->reg_lock); 1056 spin_lock_irq(&trident->reg_lock);
1057 1057
1058 // Initilize the channel and set channel Mode 1058 // Initialize the channel and set channel Mode
1059 outb(0, TRID_REG(trident, LEGACY_DMAR15)); 1059 outb(0, TRID_REG(trident, LEGACY_DMAR15));
1060 1060
1061 // Set DMA channel operation mode register 1061 // Set DMA channel operation mode register
diff --git a/sound/soc/fsl/mpc8610_hpcd.c b/sound/soc/fsl/mpc8610_hpcd.c
index 6a2764ee8203..3a501062c244 100644
--- a/sound/soc/fsl/mpc8610_hpcd.c
+++ b/sound/soc/fsl/mpc8610_hpcd.c
@@ -46,7 +46,7 @@ struct mpc8610_hpcd_data {
46}; 46};
47 47
48/** 48/**
49 * mpc8610_hpcd_machine_probe: initalize the board 49 * mpc8610_hpcd_machine_probe: initialize the board
50 * 50 *
51 * This function is called when platform_device_add() is called. It is used 51 * This function is called when platform_device_add() is called. It is used
52 * to initialize the board-specific hardware. 52 * to initialize the board-specific hardware.
diff --git a/sound/soc/imx/imx-ssi.c b/sound/soc/imx/imx-ssi.c
index 80b4fee2442b..4fd13d0791b8 100644
--- a/sound/soc/imx/imx-ssi.c
+++ b/sound/soc/imx/imx-ssi.c
@@ -23,7 +23,7 @@
23 * between pcm data and GPIO status data changes. Our FIQ handler is not 23 * between pcm data and GPIO status data changes. Our FIQ handler is not
24 * able to handle this, hence this driver only works with 48000Hz sampling 24 * able to handle this, hence this driver only works with 48000Hz sampling
25 * rate. 25 * rate.
26 * Reading and writing AC97 registers is another challange. The core 26 * Reading and writing AC97 registers is another challenge. The core
27 * provides us status bits when the read register is updated with *another* 27 * provides us status bits when the read register is updated with *another*
28 * value. When we read the same register two times (and the register still 28 * value. When we read the same register two times (and the register still
29 * contains the same value) these status bits are not set. We work 29 * contains the same value) these status bits are not set. We work
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 998569d60330..e048e0910099 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -1307,7 +1307,7 @@ cpu_dai_err:
1307} 1307}
1308 1308
1309/* 1309/*
1310 * Attempt to initialise any uninitalised cards. Must be called with 1310 * Attempt to initialise any uninitialised cards. Must be called with
1311 * client_mutex. 1311 * client_mutex.
1312 */ 1312 */
1313static void snd_soc_instantiate_cards(void) 1313static void snd_soc_instantiate_cards(void)
diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c
index 456829882f40..3634cedf9306 100644
--- a/sound/usb/pcm.c
+++ b/sound/usb/pcm.c
@@ -636,7 +636,7 @@ static int hw_rule_period_time(struct snd_pcm_hw_params *params,
636 min_datainterval = min(min_datainterval, fp->datainterval); 636 min_datainterval = min(min_datainterval, fp->datainterval);
637 } 637 }
638 if (min_datainterval == 0xff) { 638 if (min_datainterval == 0xff) {
639 hwc_debug(" --> get emtpy\n"); 639 hwc_debug(" --> get empty\n");
640 it->empty = 1; 640 it->empty = 1;
641 return -EINVAL; 641 return -EINVAL;
642 } 642 }