mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -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
|
|
@ -42,7 +42,7 @@ config SCSI_DMA
|
|||
|
||||
config SCSI_TGT
|
||||
tristate "SCSI target support"
|
||||
depends on SCSI && EXPERIMENTAL
|
||||
depends on SCSI
|
||||
---help---
|
||||
If you want to use SCSI target mode drivers enable this option.
|
||||
If you choose M, the module will be called scsi_tgt.
|
||||
|
|
@ -1392,8 +1392,8 @@ config SCSI_SYM53C416
|
|||
module will be called sym53c416.
|
||||
|
||||
config SCSI_DC395x
|
||||
tristate "Tekram DC395(U/UW/F) and DC315(U) SCSI support (EXPERIMENTAL)"
|
||||
depends on PCI && SCSI && EXPERIMENTAL
|
||||
tristate "Tekram DC395(U/UW/F) and DC315(U) SCSI support"
|
||||
depends on PCI && SCSI
|
||||
---help---
|
||||
This driver supports PCI SCSI host adapters based on the ASIC
|
||||
TRM-S1040 chip, e.g Tekram DC395(U/UW/F) and DC315(U) variants.
|
||||
|
|
@ -1618,8 +1618,8 @@ config GVP11_SCSI
|
|||
module will be called gvp11.
|
||||
|
||||
config SCSI_A4000T
|
||||
tristate "A4000T NCR53c710 SCSI support (EXPERIMENTAL)"
|
||||
depends on AMIGA && SCSI && EXPERIMENTAL
|
||||
tristate "A4000T NCR53c710 SCSI support"
|
||||
depends on AMIGA && SCSI
|
||||
select SCSI_SPI_ATTRS
|
||||
help
|
||||
If you have an Amiga 4000T and have SCSI devices connected to the
|
||||
|
|
@ -1629,8 +1629,8 @@ config SCSI_A4000T
|
|||
module will be called a4000t.
|
||||
|
||||
config SCSI_ZORRO7XX
|
||||
tristate "Zorro NCR53c710 SCSI support (EXPERIMENTAL)"
|
||||
depends on ZORRO && SCSI && EXPERIMENTAL
|
||||
tristate "Zorro NCR53c710 SCSI support"
|
||||
depends on ZORRO && SCSI
|
||||
select SCSI_SPI_ATTRS
|
||||
help
|
||||
Support for various NCR53c710-based SCSI controllers on Zorro
|
||||
|
|
@ -1807,8 +1807,8 @@ config SCSI_BFA_FC
|
|||
be called bfa.
|
||||
|
||||
config SCSI_VIRTIO
|
||||
tristate "virtio-scsi support (EXPERIMENTAL)"
|
||||
depends on EXPERIMENTAL && VIRTIO
|
||||
tristate "virtio-scsi support"
|
||||
depends on VIRTIO
|
||||
help
|
||||
This is the virtual HBA driver for virtio. If the kernel will
|
||||
be used in a virtual machine, say Y or M.
|
||||
|
|
|
|||
|
|
@ -64,19 +64,19 @@ config SCSI_POWERTECSCSI
|
|||
you have one of these, say Y. If unsure, say N.
|
||||
|
||||
comment "The following drivers are not fully supported"
|
||||
depends on ARCH_ACORN && EXPERIMENTAL
|
||||
depends on ARCH_ACORN
|
||||
|
||||
config SCSI_CUMANA_1
|
||||
tristate "CumanaSCSI I support (EXPERIMENTAL)"
|
||||
depends on ARCH_ACORN && EXPERIMENTAL && SCSI
|
||||
tristate "CumanaSCSI I support"
|
||||
depends on ARCH_ACORN && SCSI
|
||||
select SCSI_SPI_ATTRS
|
||||
help
|
||||
This enables support for the Cumana SCSI I card. If you have an
|
||||
Acorn system with one of these, say Y. If unsure, say N.
|
||||
|
||||
config SCSI_OAK1
|
||||
tristate "Oak SCSI support (EXPERIMENTAL)"
|
||||
depends on ARCH_ACORN && EXPERIMENTAL && SCSI
|
||||
tristate "Oak SCSI support"
|
||||
depends on ARCH_ACORN && SCSI
|
||||
select SCSI_SPI_ATTRS
|
||||
help
|
||||
This enables support for the Oak SCSI card. If you have an Acorn
|
||||
|
|
|
|||
|
|
@ -32,8 +32,8 @@ config SCSI_DH_EMC
|
|||
If you have a EMC CLARiiON select y. Otherwise, say N.
|
||||
|
||||
config SCSI_DH_ALUA
|
||||
tristate "SPC-3 ALUA Device Handler (EXPERIMENTAL)"
|
||||
depends on SCSI_DH && EXPERIMENTAL
|
||||
tristate "SPC-3 ALUA Device Handler"
|
||||
depends on SCSI_DH
|
||||
help
|
||||
SCSI Device handler for generic SPC-3 Asymmetric Logical Unit
|
||||
Access (ALUA).
|
||||
|
|
|
|||
|
|
@ -468,10 +468,10 @@ void scsi_unregister(struct Scsi_Host *shost)
|
|||
}
|
||||
EXPORT_SYMBOL(scsi_unregister);
|
||||
|
||||
static int __scsi_host_match(struct device *dev, void *data)
|
||||
static int __scsi_host_match(struct device *dev, const void *data)
|
||||
{
|
||||
struct Scsi_Host *p;
|
||||
unsigned short *hostnum = (unsigned short *)data;
|
||||
const unsigned short *hostnum = data;
|
||||
|
||||
p = class_to_shost(dev);
|
||||
return p->host_no == *hostnum;
|
||||
|
|
|
|||
|
|
@ -268,18 +268,11 @@ static inline bool _the_same_or_null(const u8 *a1, unsigned a1_len,
|
|||
return 0 == memcmp(a1, a2, a1_len);
|
||||
}
|
||||
|
||||
struct find_oud_t {
|
||||
const struct osd_dev_info *odi;
|
||||
struct device *dev;
|
||||
struct osd_uld_device *oud;
|
||||
} ;
|
||||
|
||||
int _mach_odi(struct device *dev, void *find_data)
|
||||
static int _match_odi(struct device *dev, const void *find_data)
|
||||
{
|
||||
struct osd_uld_device *oud = container_of(dev, struct osd_uld_device,
|
||||
class_dev);
|
||||
struct find_oud_t *fot = find_data;
|
||||
const struct osd_dev_info *odi = fot->odi;
|
||||
const struct osd_dev_info *odi = find_data;
|
||||
|
||||
if (_the_same_or_null(oud->odi.systemid, oud->odi.systemid_len,
|
||||
odi->systemid, odi->systemid_len) &&
|
||||
|
|
@ -287,7 +280,6 @@ int _mach_odi(struct device *dev, void *find_data)
|
|||
odi->osdname, odi->osdname_len)) {
|
||||
OSD_DEBUG("found device sysid_len=%d osdname=%d\n",
|
||||
odi->systemid_len, odi->osdname_len);
|
||||
fot->oud = oud;
|
||||
return 1;
|
||||
} else {
|
||||
return 0;
|
||||
|
|
@ -301,19 +293,19 @@ int _mach_odi(struct device *dev, void *find_data)
|
|||
*/
|
||||
struct osd_dev *osduld_info_lookup(const struct osd_dev_info *odi)
|
||||
{
|
||||
struct find_oud_t find = {.odi = odi};
|
||||
|
||||
find.dev = class_find_device(&osd_uld_class, NULL, &find, _mach_odi);
|
||||
if (likely(find.dev)) {
|
||||
struct device *dev = class_find_device(&osd_uld_class, NULL, odi, _match_odi);
|
||||
if (likely(dev)) {
|
||||
struct osd_dev_handle *odh = kzalloc(sizeof(*odh), GFP_KERNEL);
|
||||
struct osd_uld_device *oud = container_of(dev,
|
||||
struct osd_uld_device, class_dev);
|
||||
|
||||
if (unlikely(!odh)) {
|
||||
put_device(find.dev);
|
||||
put_device(dev);
|
||||
return ERR_PTR(-ENOMEM);
|
||||
}
|
||||
|
||||
odh->od = find.oud->od;
|
||||
odh->oud = find.oud;
|
||||
odh->od = oud->od;
|
||||
odh->oud = oud;
|
||||
|
||||
return &odh->od;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -183,10 +183,10 @@ static struct attribute_group iscsi_endpoint_group = {
|
|||
|
||||
#define ISCSI_MAX_EPID -1
|
||||
|
||||
static int iscsi_match_epid(struct device *dev, void *data)
|
||||
static int iscsi_match_epid(struct device *dev, const void *data)
|
||||
{
|
||||
struct iscsi_endpoint *ep = iscsi_dev_to_endpoint(dev);
|
||||
uint64_t *epid = (uint64_t *) data;
|
||||
const uint64_t *epid = data;
|
||||
|
||||
return *epid == ep->id;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue