mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: powerpc/macio: Fix probing of macio devices by using the right of match table agp/uninorth: Fix oops caused by flushing too much powerpc/pasemi: Update MAINTAINERS file powerpc/cell: Fix integer constant warning powerpc/kprobes: Remove resume_execution() in kprobes powerpc/macio: Don't dereference pointer before null check
This commit is contained in:
commit
39059cceed
18 changed files with 67 additions and 53 deletions
|
|
@ -492,8 +492,8 @@ static void macio_pci_add_devices(struct macio_chip *chip)
|
|||
}
|
||||
|
||||
/* Add media bay devices if any */
|
||||
pnode = mbdev->ofdev.dev.of_node;
|
||||
if (mbdev)
|
||||
if (mbdev) {
|
||||
pnode = mbdev->ofdev.dev.of_node;
|
||||
for (np = NULL; (np = of_get_next_child(pnode, np)) != NULL;) {
|
||||
if (macio_skip_device(np))
|
||||
continue;
|
||||
|
|
@ -502,10 +502,11 @@ static void macio_pci_add_devices(struct macio_chip *chip)
|
|||
mbdev, root_res) == NULL)
|
||||
of_node_put(np);
|
||||
}
|
||||
}
|
||||
|
||||
/* Add serial ports if any */
|
||||
pnode = sdev->ofdev.dev.of_node;
|
||||
if (sdev) {
|
||||
pnode = sdev->ofdev.dev.of_node;
|
||||
for (np = NULL; (np = of_get_next_child(pnode, np)) != NULL;) {
|
||||
if (macio_skip_device(np))
|
||||
continue;
|
||||
|
|
@ -525,7 +526,6 @@ static void macio_pci_add_devices(struct macio_chip *chip)
|
|||
int macio_register_driver(struct macio_driver *drv)
|
||||
{
|
||||
/* initialize common driver fields */
|
||||
drv->driver.name = drv->name;
|
||||
drv->driver.bus = &macio_bus_type;
|
||||
|
||||
/* register with core */
|
||||
|
|
|
|||
|
|
@ -728,8 +728,10 @@ static struct of_device_id media_bay_match[] =
|
|||
|
||||
static struct macio_driver media_bay_driver =
|
||||
{
|
||||
.name = "media-bay",
|
||||
.match_table = media_bay_match,
|
||||
.driver = {
|
||||
.name = "media-bay",
|
||||
.of_match_table = media_bay_match,
|
||||
},
|
||||
.probe = media_bay_attach,
|
||||
.suspend = media_bay_suspend,
|
||||
.resume = media_bay_resume
|
||||
|
|
|
|||
|
|
@ -584,9 +584,11 @@ static struct of_device_id rackmeter_match[] = {
|
|||
};
|
||||
|
||||
static struct macio_driver rackmeter_driver = {
|
||||
.name = "rackmeter",
|
||||
.owner = THIS_MODULE,
|
||||
.match_table = rackmeter_match,
|
||||
.driver = {
|
||||
.name = "rackmeter",
|
||||
.owner = THIS_MODULE,
|
||||
.of_match_table = rackmeter_match,
|
||||
},
|
||||
.probe = rackmeter_probe,
|
||||
.remove = __devexit_p(rackmeter_remove),
|
||||
.shutdown = rackmeter_shutdown,
|
||||
|
|
|
|||
Loading…
Reference in a new issue