24 Mar, 2006
1 commit
-
Several media/video and sound drivers include i2c-dev.h while they
don't need it at all. Clean it up.This header file is really only needed by i2c-dev.c and
compat_ioctl.c, other drivers should never need it.Signed-off-by: Jean Delvare
Signed-off-by: Greg Kroah-Hartman
23 Mar, 2006
2 commits
-
Semaphore to mutex conversion.
The conversion was generated via scripts, and the result was validated
automatically via a script as well.Extracted for OSS/Free changes from Ingo's original patches.
Signed-off-by: Ingo Molnar
Signed-off-by: Takashi Iwai
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Semaphore to mutex conversion.
The conversion was generated via scripts, and the result was validated
automatically via a script as well.Signed-off-by: Ingo Molnar
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
08 Feb, 2006
2 commits
-
The PowerMac sound drivers used to rely on a "bug" of the i2c-keywest
driver that implemented I2C_SMBUS_BLOCK_DATA incorrectly, that is it did
what I2C_SMBUS_I2C_BLOCK_DATA should have done. The new i2c-powermac
driver that replaces keywest has this bug fixed, thus the sound drivers
must be fixed too.Signed-off-by: Benjamin Herrenschmidt
Signed-off-by: Linus Torvalds -
asm/delay.h is non-portable; linux/delay.h should be used in generic code.
Signed-off-by: Al Viro
01 Feb, 2006
1 commit
-
au_readl() does needed byteswapping, etc.
Cc: Takashi Iwai
Cc: Jaroslav Kysela
Acked-by: Jordan Crouse
Signed-off-by: Andrew Morton
Signed-off-by: Greg Kroah-Hartman
19 Jan, 2006
1 commit
-
Some pcnet32 hardware erroneously has the Vendor ID for Trident. The
pcnet32 driver looks for the PCI ethernet class before grabbing the
hardware, but the current trident driver does not check against the PCI
audio class. This allows the trident driver to claim the pcnet32 hardware.
This patch prevents that.This revised version of the OSS Trident patch includes PCI_DEVICE Macro
usage.Signed-off-by: Jon Mason
Signed-off-by: Muli Ben-Yehuda
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
16 Jan, 2006
1 commit
15 Jan, 2006
2 commits
-
Remove the "inline" keyword from a bunch of big functions in the kernel with
the goal of shrinking it by 30kb to 40kbSigned-off-by: Arjan van de Ven
Signed-off-by: Ingo Molnar
Acked-by: Jeff Garzik
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Signed-off-by: Adrian Bunk
13 Jan, 2006
5 commits
-
Signed-off-by: Al Viro
Cc: Roman Zippel
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
sound/oss/dmasound/dmasound_atari.c has static expand_bal
sound/oss/dmasound/dmasound_q40.c has static expand_bal
sound/oss/dmasound/dmasound_awacs.c has non-static expand_bal
sound/oss/dmasound/trans_16.c uses expand_bal from dmasound_awacs.c
all 4 include dmasound.h; extern for expand_bal used to be there,
which is a bloody bad idea, considering _atari and _q40. Moved the
extern to trans_16.c.Signed-off-by: Al Viro
Cc: Roman Zippel
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Cast is not an lvalue
Signed-off-by: Al Viro
Cc: Roman Zippel
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
Avoid warnings about use of cast expressions as lvalues
Signed-off-by: Roman Zippel
Signed-off-by: Al Viro
Cc: Roman Zippel
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
in amigahw.h custom renamed to amiga_custom, in drivers with few instances the
same replacement, in the rest - #define custom amiga_custom in driver itselfSigned-off-by: Al Viro
Cc: Roman Zippel
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
12 Jan, 2006
2 commits
-
Just add the missing PCI ID.
Cc: perex@suse.cz
Cc: tiwai@suse.deSigned-off-by: Andi Kleen
Signed-off-by: Linus Torvalds -
sound/oss/i810_audio.c:3431: warning: label `out_pio' defined but not used
Signed-off-by: Jesper Juhl
Signed-off-by: Linus Torvalds
11 Jan, 2006
1 commit
-
OSS Harmony got missed on the conversion of parisc_device.hpa to a
struct resource... fix its build.Signed-off-by: Stuart Brady
Signed-off-by: Kyle McMartin
10 Jan, 2006
2 commits
-
Replace obsolete pci_module_init() with pci_register_driver().
Signed-off-by: Greg Kroah-Hartman
Signed-off-by: Richard Knutsson
09 Jan, 2006
2 commits
-
Request the IRQ after having set everything up. Otherwise a shared interrupt
at the right time can kill the machine.Found this with David Woodhouse 's
debug-shared-irqs.patch.Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
The pre-parsed addrs/n_addrs fields in struct device_node are finally
gone. Remove the dodgy heuristics that did that parsing at boot and
remove the fields themselves since we now have a good replacement with
the new OF parsing code. This patch also fixes a bunch of drivers to use
the new code instead, so that at least pmac32, pseries, iseries and g5
defconfigs build.Signed-off-by: Benjamin Herrenschmidt
Signed-off-by: Paul Mackerras
07 Jan, 2006
7 commits
-
This change removes the old, deprecated interface from the opl3sa2 driver,
including the pm_{,un}register() calls, the local storage of the pmdev object
and the reference to the old header files. This change is done to assist in
eradicating the users of the legacy interface so as to help facilitate the
removal of the interface itself.Signed-off-by: Patrick Mochel
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
This change removes the old, deprecated interface from the nm256 driver,
including the pm_{,un}register() calls, the local storage of the pmdev object
and the reference to the old header files. This change is done to assist in
eradicating the users of the legacy interface so as to help facilitate the
removal of the interface itself.Note that this driver has been obsoleted by an ALSA equivalent.
Signed-off-by: Patrick Mochel
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
This change removes the old, deprecated interface from the maestro driver,
including the pm_{,un}register() calls, the local storage of the pmdev object
and the reference to the old header files. This change is done to assist in
eradicating the users of the legacy interface so as to help facilitate the
removal of the interface itself.The check_suspend() function and associated logic was not removed, even though
it is now unnecessary.Note that this driver has been obsoleted by an ALSA equivalent.
Acked-by: Zach Brown
Signed-off-by: Patrick Mochel
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
This change removes the old, deprecated interface from the cs46xx driver,
including the pm_{,un}register() calls, the local storage of the pmdev object
and the reference to the old header files. This change is done to assist in
eradicating the users of the legacy interface so as to help facilitate the
removal of the interface itself.Note this driver has PCI PM hooks which are set properly. It also has the
ability to trigger suspend/resume from an ioctl. This functionality was not
touched, though it could use a serious review if this driver continues to
persist in the mainline tree..Note that this driver has been obsoleted by an ALSA equivalent.
Signed-off-by: Patrick Mochel
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
This change removes the old, deprecated interface from the cs4281 driver,
including the pm_{,un}register() calls, the local storage of the pmdev object
and the reference to the old header files. This change is done to assist in
eradicating the users of the legacy interface so as to help facilitate the
removal of the interface itself.Note that this driver has been obsoleted by an ALSA equivalent.
Note that this driver has hooks for PCI power management, but does not
implement the ->suspend()/->resume() methods.Signed-off-by: Patrick Mochel
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
This change removes the old, deprecated interface from the ad1848 driver,
including the pm_{,un}register() calls, the local storage of the pmdev object
and the reference to the old header files. This change is done to assist in
eradicating the users of the legacy interface so as to help facilitate the
removal of the interface itself.Signed-off-by: Patrick Mochel
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
06 Jan, 2006
3 commits
-
Now that i2c_add_driver() doesn't need the module owner to be set by
hand, we can delete it from the drivers. This patch catches all of the
drivers that I found in the current tree (if a driver sets the .owner by
hand, it's not a problem, just not needed.)Signed-off-by: Greg Kroah-Hartman
Cc: Jean Delvare -
We should use the i2c_driver.driver's .name and .owner fields
instead of the i2c_driver's ones.This patch updates the OSS drivers.
Signed-off-by: Laurent Riffard
Signed-off-by: Jean Delvare
Signed-off-by: Greg Kroah-Hartman -
Just about every i2c chip driver sets the I2C_DF_NOTIFY flag, so we
can simply make it the default and drop the flag. If any driver really
doesn't want to be notified when i2c adapters are added, that driver
can simply omit to set .attach_adapter. This approach is also more
robust as it prevents accidental NULL pointer dereferences.Signed-off-by: Jean Delvare
Signed-off-by: Greg Kroah-Hartman
16 Dec, 2005
1 commit
-
We have found some issues with Au1550 AC'97 OSS driver in 2.6
(sound/oss/au1550_ac97.c), though it also should concern 2.4 driver
(drivers/sound/au1550_psc.c).start_dac() grabs a spinlock already held by its caller, au1550_write().
This doesn't show up with the standard UP spinlock impelmentation but when
the different one (mutex based) is in use, a lockup happens.And the interrupt handlers also didn't grab the spinlock -- that's OK in
the usual kernel but not when the IRQ handlers are threaded. So, they're
grabbing the spinlock now (as every correct interrupt handler should do).Signed-off-by: Konstantin Baidarov
Signed-off-by: Sergei Shtylyov
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
14 Nov, 2005
1 commit
-
Since few people need the support anymore, this moves the legacy
pm_xxx functions to CONFIG_PM_LEGACY, and include/linux/pm_legacy.h.Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
09 Nov, 2005
2 commits
-
This patch removes almost all inclusions of linux/version.h. The 3
#defines are unused in most of the touched files.A few drivers use the simple KERNEL_VERSION(a,b,c) macro, which is
unfortunatly in linux/version.h.There are also lots of #ifdef for long obsolete kernels, this was not
touched. In a few places, the linux/version.h include was move to where
the LINUX_VERSION_CODE was used.quilt vi `find * -type f -name "*.[ch]"|xargs grep -El '(UTS_RELEASE|LINUX_VERSION_CODE|KERNEL_VERSION|linux/version.h)'|grep -Ev '(/(boot|coda|drm)/|~$)'`
search pattern:
/UTS_RELEASE\|LINUX_VERSION_CODE\|KERNEL_VERSION\|linux\/\(utsname\|version\).hSigned-off-by: Olaf Hering
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
This patch schedules obsolete OSS drivers (with ALSA drivers that support
the same hardware) for removal.Scheduling the via82cxxx driver for removal was ACK'ed by Jeff Garzik.
Signed-off-by: Adrian Bunk
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
08 Nov, 2005
3 commits
-
"extern inline" doesn't make much sense.
Signed-off-by: Adrian Bunk
Signed-off-by: Ralf Baechle
07 Nov, 2005
1 commit
-
This patch remoes an unneeded EXPORT_SYMBOL.
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds