···322322}323323324324#ifdef CONFIG_PPC_OF325325-/*326326- * k2_sata_proc_info327327- * inout : decides on the direction of the dataflow and the meaning of the328328- * variables329329- * buffer: If inout==FALSE data is being written to it else read from it330330- * *start: If inout==FALSE start of the valid data in the buffer331331- * offset: If inout==FALSE offset from the beginning of the imaginary file332332- * from which we start writing into the buffer333333- * length: If inout==FALSE max number of bytes to be written into the buffer334334- * else number of bytes in the buffer335335- */336336-static int k2_sata_proc_info(struct Scsi_Host *shost, char *page, char **start,337337- off_t offset, int count, int inout)325325+static int k2_sata_show_info(struct seq_file *m, struct Scsi_Host *shost)338326{339327 struct ata_port *ap;340328 struct device_node *np;341341- int len, index;329329+ int index;342330343331 /* Find the ata_port */344332 ap = ata_shost_to_port(shost);···344356 const u32 *reg = of_get_property(np, "reg", NULL);345357 if (!reg)346358 continue;347347- if (index == *reg)359359+ if (index == *reg) {360360+ seq_printf(m, "devspec: %s\n", np->full_name);348361 break;362362+ }349363 }350350- if (np == NULL)351351- return 0;352352-353353- len = sprintf(page, "devspec: %s\n", np->full_name);354354-355355- return len;364364+ return 0;356365}357366#endif /* CONFIG_PPC_OF */358367···357372static struct scsi_host_template k2_sata_sht = {358373 ATA_BMDMA_SHT(DRV_NAME),359374#ifdef CONFIG_PPC_OF360360- .proc_info = k2_sata_proc_info,375375+ .show_info = k2_sata_show_info,361376#endif362377};363378