diff options
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/aha1740.c | 1 | ||||
-rw-r--r-- | drivers/scsi/aic7xxx/aic7770_osm.c | 3 | ||||
-rw-r--r-- | drivers/scsi/mesh.c | 15 | ||||
-rw-r--r-- | drivers/scsi/sim710.c | 1 |
4 files changed, 15 insertions, 5 deletions
diff --git a/drivers/scsi/aha1740.c b/drivers/scsi/aha1740.c index 0e4a7ebe300a..6b35ed8301e0 100644 --- a/drivers/scsi/aha1740.c +++ b/drivers/scsi/aha1740.c | |||
@@ -681,6 +681,7 @@ static struct eisa_device_id aha1740_ids[] = { | |||
681 | { "ADP0400" }, /* 1744 */ | 681 | { "ADP0400" }, /* 1744 */ |
682 | { "" } | 682 | { "" } |
683 | }; | 683 | }; |
684 | MODULE_DEVICE_TABLE(eisa, aha1740_ids); | ||
684 | 685 | ||
685 | static struct eisa_driver aha1740_driver = { | 686 | static struct eisa_driver aha1740_driver = { |
686 | .id_table = aha1740_ids, | 687 | .id_table = aha1740_ids, |
diff --git a/drivers/scsi/aic7xxx/aic7770_osm.c b/drivers/scsi/aic7xxx/aic7770_osm.c index 867cbe23579b..1ac119733bac 100644 --- a/drivers/scsi/aic7xxx/aic7770_osm.c +++ b/drivers/scsi/aic7xxx/aic7770_osm.c | |||
@@ -132,7 +132,8 @@ static struct eisa_device_id aic7770_ids[] = { | |||
132 | { "ADP7770", 5 }, /* AIC7770 generic */ | 132 | { "ADP7770", 5 }, /* AIC7770 generic */ |
133 | { "" } | 133 | { "" } |
134 | }; | 134 | }; |
135 | 135 | MODULE_DEVICE_TABLE(eisa, aic7770_ids); | |
136 | |||
136 | static struct eisa_driver aic7770_driver = { | 137 | static struct eisa_driver aic7770_driver = { |
137 | .id_table = aic7770_ids, | 138 | .id_table = aic7770_ids, |
138 | .driver = { | 139 | .driver = { |
diff --git a/drivers/scsi/mesh.c b/drivers/scsi/mesh.c index 592b52afe658..683fc7ae4b8f 100644 --- a/drivers/scsi/mesh.c +++ b/drivers/scsi/mesh.c | |||
@@ -1756,16 +1756,23 @@ static void set_mesh_power(struct mesh_state *ms, int state) | |||
1756 | pmac_call_feature(PMAC_FTR_MESH_ENABLE, macio_get_of_node(ms->mdev), 0, 0); | 1756 | pmac_call_feature(PMAC_FTR_MESH_ENABLE, macio_get_of_node(ms->mdev), 0, 0); |
1757 | msleep(10); | 1757 | msleep(10); |
1758 | } | 1758 | } |
1759 | } | 1759 | } |
1760 | 1760 | ||
1761 | 1761 | ||
1762 | #ifdef CONFIG_PM | 1762 | #ifdef CONFIG_PM |
1763 | static int mesh_suspend(struct macio_dev *mdev, pm_message_t state) | 1763 | static int mesh_suspend(struct macio_dev *mdev, pm_message_t mesg) |
1764 | { | 1764 | { |
1765 | struct mesh_state *ms = (struct mesh_state *)macio_get_drvdata(mdev); | 1765 | struct mesh_state *ms = (struct mesh_state *)macio_get_drvdata(mdev); |
1766 | unsigned long flags; | 1766 | unsigned long flags; |
1767 | 1767 | ||
1768 | if (state.event == mdev->ofdev.dev.power.power_state.event || state.event < 2) | 1768 | switch (mesg.event) { |
1769 | case PM_EVENT_SUSPEND: | ||
1770 | case PM_EVENT_FREEZE: | ||
1771 | break; | ||
1772 | default: | ||
1773 | return 0; | ||
1774 | } | ||
1775 | if (mesg.event == mdev->ofdev.dev.power.power_state.event) | ||
1769 | return 0; | 1776 | return 0; |
1770 | 1777 | ||
1771 | scsi_block_requests(ms->host); | 1778 | scsi_block_requests(ms->host); |
@@ -1780,7 +1787,7 @@ static int mesh_suspend(struct macio_dev *mdev, pm_message_t state) | |||
1780 | disable_irq(ms->meshintr); | 1787 | disable_irq(ms->meshintr); |
1781 | set_mesh_power(ms, 0); | 1788 | set_mesh_power(ms, 0); |
1782 | 1789 | ||
1783 | mdev->ofdev.dev.power.power_state = state; | 1790 | mdev->ofdev.dev.power.power_state = mesg; |
1784 | 1791 | ||
1785 | return 0; | 1792 | return 0; |
1786 | } | 1793 | } |
diff --git a/drivers/scsi/sim710.c b/drivers/scsi/sim710.c index b27e85428daa..551baccec523 100644 --- a/drivers/scsi/sim710.c +++ b/drivers/scsi/sim710.c | |||
@@ -282,6 +282,7 @@ static struct eisa_device_id sim710_eisa_ids[] = { | |||
282 | { "HWP0C80" }, | 282 | { "HWP0C80" }, |
283 | { "" } | 283 | { "" } |
284 | }; | 284 | }; |
285 | MODULE_DEVICE_TABLE(eisa, sim710_eisa_ids); | ||
285 | 286 | ||
286 | static __init int | 287 | static __init int |
287 | sim710_eisa_probe(struct device *dev) | 288 | sim710_eisa_probe(struct device *dev) |