[libata] pata_{legacy,sc1200,sl82c105}: add missing hooks

Alan Cox noticed several hooks in pata_* drivers were missing, when
he authored his ->cable_detect hook patches. This patch extracts
just those fixes from Alan's patches, adding the necessary hooks
(usually ->freeze, ->thaw, and ->post_internal_cmd) to the drivers.

Signed-off-by: Jeff Garzik <jeff@garzik.org>

+24
+18
drivers/ata/pata_legacy.c
··· 186 186 .exec_command = ata_exec_command, 187 187 .dev_select = ata_std_dev_select, 188 188 189 + .freeze = ata_bmdma_freeze, 190 + .thaw = ata_bmdma_thaw, 189 191 .error_handler = ata_bmdma_error_handler, 192 + .post_internal_cmd = ata_bmdma_post_internal_cmd, 190 193 191 194 .qc_prep = ata_qc_prep, 192 195 .qc_issue = ata_qc_issue_prot, ··· 301 298 .exec_command = ata_exec_command, 302 299 .dev_select = ata_std_dev_select, 303 300 301 + .freeze = ata_bmdma_freeze, 302 + .thaw = ata_bmdma_thaw, 304 303 .error_handler = ata_bmdma_error_handler, 304 + .post_internal_cmd = ata_bmdma_post_internal_cmd, 305 305 306 306 .qc_prep = ata_qc_prep, 307 307 .qc_issue = ata_qc_issue_prot, ··· 356 350 .exec_command = ata_exec_command, 357 351 .dev_select = ata_std_dev_select, 358 352 353 + .freeze = ata_bmdma_freeze, 354 + .thaw = ata_bmdma_thaw, 359 355 .error_handler = ata_bmdma_error_handler, 356 + .post_internal_cmd = ata_bmdma_post_internal_cmd, 360 357 361 358 .qc_prep = ata_qc_prep, 362 359 .qc_issue = ata_qc_issue_prot, ··· 422 413 .exec_command = ata_exec_command, 423 414 .dev_select = ata_std_dev_select, 424 415 416 + .freeze = ata_bmdma_freeze, 417 + .thaw = ata_bmdma_thaw, 425 418 .error_handler = ata_bmdma_error_handler, 419 + .post_internal_cmd = ata_bmdma_post_internal_cmd, 426 420 427 421 .qc_prep = ata_qc_prep, 428 422 .qc_issue = ata_qc_issue_prot, ··· 543 531 .exec_command = ata_exec_command, 544 532 .dev_select = ata_std_dev_select, 545 533 534 + .freeze = ata_bmdma_freeze, 535 + .thaw = ata_bmdma_thaw, 546 536 .error_handler = ata_bmdma_error_handler, 537 + .post_internal_cmd = ata_bmdma_post_internal_cmd, 547 538 548 539 .qc_prep = ata_qc_prep, 549 540 .qc_issue = ata_qc_issue_prot, ··· 676 661 .exec_command = ata_exec_command, 677 662 .dev_select = ata_std_dev_select, 678 663 664 + .freeze = ata_bmdma_freeze, 665 + .thaw = ata_bmdma_thaw, 679 666 .error_handler = ata_bmdma_error_handler, 667 + .post_internal_cmd = ata_bmdma_post_internal_cmd, 680 668 681 669 .qc_prep = ata_qc_prep, 682 670 .qc_issue = opti82c46x_qc_issue_prot,
+3
drivers/ata/pata_sc1200.c
··· 210 210 .exec_command = ata_exec_command, 211 211 .dev_select = ata_std_dev_select, 212 212 213 + .freeze = ata_bmdma_freeze, 214 + .thaw = ata_bmdma_thaw, 213 215 .error_handler = ata_bmdma_error_handler, 216 + .post_internal_cmd = ata_bmdma_post_internal_cmd, 214 217 215 218 .bmdma_setup = ata_bmdma_setup, 216 219 .bmdma_start = ata_bmdma_start,
+3
drivers/ata/pata_sl82c105.c
··· 234 234 .exec_command = ata_exec_command, 235 235 .dev_select = ata_std_dev_select, 236 236 237 + .freeze = ata_bmdma_freeze, 238 + .thaw = ata_bmdma_thaw, 237 239 .error_handler = sl82c105_error_handler, 240 + .post_internal_cmd = ata_bmdma_post_internal_cmd, 238 241 239 242 .bmdma_setup = ata_bmdma_setup, 240 243 .bmdma_start = sl82c105_bmdma_start,