mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
Driver core patches for 3.9-rc1
Here is the big driver core merge for 3.9-rc1
There are two major series here, both of which touch lots of drivers all
over the kernel, and will cause you some merge conflicts:
- add a new function called devm_ioremap_resource() to properly be
able to check return values.
- remove CONFIG_EXPERIMENTAL
If you need me to provide a merged tree to handle these resolutions,
please let me know.
Other than those patches, there's not much here, some minor fixes and
updates.
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
iEYEABECAAYFAlEmV0cACgkQMUfUDdst+yncCQCfbmnQZju7kzWXk6PjdFuKspT9
weAAoMCzcAtEzzc4LXuUxxG/sXBVBCjW
=yWAQ
-----END PGP SIGNATURE-----
Merge tag 'driver-core-3.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
Pull driver core patches from Greg Kroah-Hartman:
"Here is the big driver core merge for 3.9-rc1
There are two major series here, both of which touch lots of drivers
all over the kernel, and will cause you some merge conflicts:
- add a new function called devm_ioremap_resource() to properly be
able to check return values.
- remove CONFIG_EXPERIMENTAL
Other than those patches, there's not much here, some minor fixes and
updates"
Fix up trivial conflicts
* tag 'driver-core-3.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (221 commits)
base: memory: fix soft/hard_offline_page permissions
drivercore: Fix ordering between deferred_probe and exiting initcalls
backlight: fix class_find_device() arguments
TTY: mark tty_get_device call with the proper const values
driver-core: constify data for class_find_device()
firmware: Ignore abort check when no user-helper is used
firmware: Reduce ifdef CONFIG_FW_LOADER_USER_HELPER
firmware: Make user-mode helper optional
firmware: Refactoring for splitting user-mode helper code
Driver core: treat unregistered bus_types as having no devices
watchdog: Convert to devm_ioremap_resource()
thermal: Convert to devm_ioremap_resource()
spi: Convert to devm_ioremap_resource()
power: Convert to devm_ioremap_resource()
mtd: Convert to devm_ioremap_resource()
mmc: Convert to devm_ioremap_resource()
mfd: Convert to devm_ioremap_resource()
media: Convert to devm_ioremap_resource()
iommu: Convert to devm_ioremap_resource()
drm: Convert to devm_ioremap_resource()
...
This commit is contained in:
commit
06991c28f3
378 changed files with 1686 additions and 1880 deletions
|
|
@ -89,7 +89,7 @@ source drivers/i2c/busses/Kconfig
|
|||
|
||||
config I2C_STUB
|
||||
tristate "I2C/SMBus Test Stub"
|
||||
depends on EXPERIMENTAL && m
|
||||
depends on m
|
||||
default 'n'
|
||||
help
|
||||
This module may be useful to developers of SMBus client drivers,
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ config I2C_ALI1535
|
|||
|
||||
config I2C_ALI1563
|
||||
tristate "ALI 1563"
|
||||
depends on PCI && EXPERIMENTAL
|
||||
depends on PCI
|
||||
help
|
||||
If you say yes to this option, support will be included for the SMB
|
||||
Host controller on Acer Labs Inc. (ALI) M1563 South Bridges. The SMB
|
||||
|
|
@ -56,7 +56,7 @@ config I2C_AMD756
|
|||
|
||||
config I2C_AMD756_S4882
|
||||
tristate "SMBus multiplexing on the Tyan S4882"
|
||||
depends on I2C_AMD756 && X86 && EXPERIMENTAL
|
||||
depends on I2C_AMD756 && X86
|
||||
help
|
||||
Enabling this option will add specific SMBus support for the Tyan
|
||||
S4882 motherboard. On this 4-CPU board, the SMBus is multiplexed
|
||||
|
|
@ -164,7 +164,7 @@ config I2C_NFORCE2
|
|||
|
||||
config I2C_NFORCE2_S4985
|
||||
tristate "SMBus multiplexing on the Tyan S4985"
|
||||
depends on I2C_NFORCE2 && X86 && EXPERIMENTAL
|
||||
depends on I2C_NFORCE2 && X86
|
||||
help
|
||||
Enabling this option will add specific SMBus support for the Tyan
|
||||
S4985 motherboard. On this 4-CPU board, the SMBus is multiplexed
|
||||
|
|
@ -215,7 +215,7 @@ config I2C_SIS96X
|
|||
|
||||
config I2C_VIA
|
||||
tristate "VIA VT82C586B"
|
||||
depends on PCI && EXPERIMENTAL
|
||||
depends on PCI
|
||||
select I2C_ALGOBIT
|
||||
help
|
||||
If you say yes to this option, support will be included for the VIA
|
||||
|
|
@ -267,7 +267,7 @@ comment "Mac SMBus host controller drivers"
|
|||
|
||||
config I2C_HYDRA
|
||||
tristate "CHRP Apple Hydra Mac I/O I2C interface"
|
||||
depends on PCI && PPC_CHRP && EXPERIMENTAL
|
||||
depends on PCI && PPC_CHRP
|
||||
select I2C_ALGOBIT
|
||||
help
|
||||
This supports the use of the I2C interface in the Apple Hydra Mac
|
||||
|
|
@ -293,7 +293,7 @@ comment "I2C system bus drivers (mostly embedded / system-on-chip)"
|
|||
|
||||
config I2C_AT91
|
||||
tristate "Atmel AT91 I2C Two-Wire interface (TWI)"
|
||||
depends on ARCH_AT91 && EXPERIMENTAL
|
||||
depends on ARCH_AT91
|
||||
help
|
||||
This supports the use of the I2C interface on Atmel AT91
|
||||
processors.
|
||||
|
|
@ -519,7 +519,6 @@ config I2C_NUC900
|
|||
|
||||
config I2C_OCORES
|
||||
tristate "OpenCores I2C Controller"
|
||||
depends on EXPERIMENTAL
|
||||
help
|
||||
If you say yes to this option, support will be included for the
|
||||
OpenCores I2C controller. For details see
|
||||
|
|
@ -712,7 +711,7 @@ config I2C_OCTEON
|
|||
|
||||
config I2C_XILINX
|
||||
tristate "Xilinx I2C Controller"
|
||||
depends on EXPERIMENTAL && HAS_IOMEM
|
||||
depends on HAS_IOMEM
|
||||
help
|
||||
If you say yes to this option, support will be included for the
|
||||
Xilinx I2C controller.
|
||||
|
|
@ -803,7 +802,6 @@ config I2C_PARPORT_LIGHT
|
|||
|
||||
config I2C_TAOS_EVM
|
||||
tristate "TAOS evaluation module"
|
||||
depends on EXPERIMENTAL
|
||||
select SERIO
|
||||
select SERIO_SERPORT
|
||||
default n
|
||||
|
|
|
|||
|
|
@ -723,9 +723,9 @@ static int at91_twi_probe(struct platform_device *pdev)
|
|||
if (!dev->pdata)
|
||||
return -ENODEV;
|
||||
|
||||
dev->base = devm_request_and_ioremap(&pdev->dev, mem);
|
||||
if (!dev->base)
|
||||
return -EBUSY;
|
||||
dev->base = devm_ioremap_resource(&pdev->dev, mem);
|
||||
if (IS_ERR(dev->base))
|
||||
return PTR_ERR(dev->base);
|
||||
|
||||
dev->irq = platform_get_irq(pdev, 0);
|
||||
if (dev->irq < 0)
|
||||
|
|
|
|||
|
|
@ -511,9 +511,9 @@ static int __init i2c_imx_probe(struct platform_device *pdev)
|
|||
return -ENOENT;
|
||||
}
|
||||
|
||||
base = devm_request_and_ioremap(&pdev->dev, res);
|
||||
if (!base)
|
||||
return -EBUSY;
|
||||
base = devm_ioremap_resource(&pdev->dev, res);
|
||||
if (IS_ERR(base))
|
||||
return PTR_ERR(base);
|
||||
|
||||
i2c_imx = devm_kzalloc(&pdev->dev, sizeof(struct imx_i2c_struct),
|
||||
GFP_KERNEL);
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
* kind, whether express or implied.
|
||||
*/
|
||||
|
||||
#include <linux/err.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/init.h>
|
||||
|
|
@ -364,9 +365,9 @@ static int ocores_i2c_probe(struct platform_device *pdev)
|
|||
if (!i2c)
|
||||
return -ENOMEM;
|
||||
|
||||
i2c->base = devm_request_and_ioremap(&pdev->dev, res);
|
||||
if (!i2c->base)
|
||||
return -EADDRNOTAVAIL;
|
||||
i2c->base = devm_ioremap_resource(&pdev->dev, res);
|
||||
if (IS_ERR(i2c->base))
|
||||
return PTR_ERR(i2c->base);
|
||||
|
||||
pdata = pdev->dev.platform_data;
|
||||
if (pdata) {
|
||||
|
|
|
|||
|
|
@ -1103,11 +1103,9 @@ omap_i2c_probe(struct platform_device *pdev)
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
dev->base = devm_request_and_ioremap(&pdev->dev, mem);
|
||||
if (!dev->base) {
|
||||
dev_err(&pdev->dev, "I2C region already claimed\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
dev->base = devm_ioremap_resource(&pdev->dev, mem);
|
||||
if (IS_ERR(dev->base))
|
||||
return PTR_ERR(dev->base);
|
||||
|
||||
match = of_match_device(of_match_ptr(omap_i2c_of_match), &pdev->dev);
|
||||
if (match) {
|
||||
|
|
|
|||
|
|
@ -642,11 +642,9 @@ static int rcar_i2c_probe(struct platform_device *pdev)
|
|||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
priv->io = devm_request_and_ioremap(dev, res);
|
||||
if (!priv->io) {
|
||||
dev_err(dev, "cannot ioremap\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
priv->io = devm_ioremap_resource(dev, res);
|
||||
if (IS_ERR(priv->io))
|
||||
return PTR_ERR(priv->io);
|
||||
|
||||
priv->irq = platform_get_irq(pdev, 0);
|
||||
init_waitqueue_head(&priv->wait);
|
||||
|
|
|
|||
|
|
@ -1042,11 +1042,10 @@ static int s3c24xx_i2c_probe(struct platform_device *pdev)
|
|||
goto err_clk;
|
||||
}
|
||||
|
||||
i2c->regs = devm_request_and_ioremap(&pdev->dev, res);
|
||||
i2c->regs = devm_ioremap_resource(&pdev->dev, res);
|
||||
|
||||
if (i2c->regs == NULL) {
|
||||
dev_err(&pdev->dev, "cannot map IO\n");
|
||||
ret = -ENXIO;
|
||||
if (IS_ERR(i2c->regs)) {
|
||||
ret = PTR_ERR(i2c->regs);
|
||||
goto err_clk;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -309,10 +309,9 @@ static int i2c_sirfsoc_probe(struct platform_device *pdev)
|
|||
goto out;
|
||||
}
|
||||
|
||||
siic->base = devm_request_and_ioremap(&pdev->dev, mem_res);
|
||||
if (siic->base == NULL) {
|
||||
dev_err(&pdev->dev, "IO remap failed!\n");
|
||||
err = -ENOMEM;
|
||||
siic->base = devm_ioremap_resource(&pdev->dev, mem_res);
|
||||
if (IS_ERR(siic->base)) {
|
||||
err = PTR_ERR(siic->base);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -888,11 +888,11 @@ stu300_probe(struct platform_device *pdev)
|
|||
if (!res)
|
||||
return -ENOENT;
|
||||
|
||||
dev->virtbase = devm_request_and_ioremap(&pdev->dev, res);
|
||||
dev->virtbase = devm_ioremap_resource(&pdev->dev, res);
|
||||
dev_dbg(&pdev->dev, "initialize bus device I2C%d on virtual "
|
||||
"base %p\n", bus_nr, dev->virtbase);
|
||||
if (!dev->virtbase)
|
||||
return -ENOMEM;
|
||||
if (IS_ERR(dev->virtbase))
|
||||
return PTR_ERR(dev->virtbase);
|
||||
|
||||
dev->irq = platform_get_irq(pdev, 0);
|
||||
ret = devm_request_irq(&pdev->dev, dev->irq, stu300_irh, 0, NAME, dev);
|
||||
|
|
|
|||
|
|
@ -669,11 +669,9 @@ static int tegra_i2c_probe(struct platform_device *pdev)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
base = devm_request_and_ioremap(&pdev->dev, res);
|
||||
if (!base) {
|
||||
dev_err(&pdev->dev, "Cannot request/ioremap I2C registers\n");
|
||||
return -EADDRNOTAVAIL;
|
||||
}
|
||||
base = devm_ioremap_resource(&pdev->dev, res);
|
||||
if (IS_ERR(base))
|
||||
return PTR_ERR(base);
|
||||
|
||||
res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
|
||||
if (!res) {
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
* warranty of any kind, whether express or implied.
|
||||
*/
|
||||
|
||||
#include <linux/err.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/slab.h>
|
||||
|
|
@ -225,11 +226,9 @@ static int xlr_i2c_probe(struct platform_device *pdev)
|
|||
return -ENOMEM;
|
||||
|
||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
priv->iobase = devm_request_and_ioremap(&pdev->dev, res);
|
||||
if (!priv->iobase) {
|
||||
dev_err(&pdev->dev, "devm_request_and_ioremap failed\n");
|
||||
return -EBUSY;
|
||||
}
|
||||
priv->iobase = devm_ioremap_resource(&pdev->dev, res);
|
||||
if (IS_ERR(priv->iobase))
|
||||
return PTR_ERR(priv->iobase);
|
||||
|
||||
priv->adap.dev.parent = &pdev->dev;
|
||||
priv->adap.owner = THIS_MODULE;
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ config I2C_MUX_GPIO
|
|||
|
||||
config I2C_MUX_PCA9541
|
||||
tristate "NXP PCA9541 I2C Master Selector"
|
||||
depends on EXPERIMENTAL
|
||||
help
|
||||
If you say yes here you get support for the NXP PCA9541
|
||||
I2C Master Selector.
|
||||
|
|
@ -29,7 +28,6 @@ config I2C_MUX_PCA9541
|
|||
|
||||
config I2C_MUX_PCA954x
|
||||
tristate "Philips PCA954x I2C Mux/switches"
|
||||
depends on EXPERIMENTAL
|
||||
help
|
||||
If you say yes here you get support for the Philips PCA954x
|
||||
I2C mux/switch devices.
|
||||
|
|
|
|||
Loading…
Reference in a new issue