Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34056
b: refs/heads/master
c: 294ef16
h: refs/heads/master
v: v3
  • Loading branch information
Jeremy Kerr authored and Paul Mackerras committed Jul 31, 2006
1 parent 0115ce4 commit 58d1911
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b04e3dd4ab4c7763a4ca8f751caaf69ce8dabbba
refs/heads/master: 294ef16a2ee34d0d94aa63616f7552d3bc66c982
11 changes: 4 additions & 7 deletions trunk/drivers/scsi/ibmvscsi/rpa_vscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,23 +156,20 @@ static void gather_partition_info(void)
{
struct device_node *rootdn;

char *ppartition_name;
unsigned int *p_number_ptr;
const char *ppartition_name;
const unsigned int *p_number_ptr;

/* Retrieve information about this partition */
rootdn = find_path_device("/");
if (!rootdn) {
return;
}

ppartition_name =
get_property(rootdn, "ibm,partition-name", NULL);
ppartition_name = get_property(rootdn, "ibm,partition-name", NULL);
if (ppartition_name)
strncpy(partition_name, ppartition_name,
sizeof(partition_name));
p_number_ptr =
(unsigned int *)get_property(rootdn, "ibm,partition-no",
NULL);
p_number_ptr = get_property(rootdn, "ibm,partition-no", NULL);
if (p_number_ptr)
partition_number = *p_number_ptr;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/scsi/mac53c94.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ static int mac53c94_probe(struct macio_dev *mdev, const struct of_device_id *mat
struct fsc_state *state;
struct Scsi_Host *host;
void *dma_cmd_space;
unsigned char *clkprop;
const unsigned char *clkprop;
int proplen, rc = -ENODEV;

if (macio_resource_count(mdev) != 2 || macio_irq_count(mdev) != 2) {
Expand Down
5 changes: 3 additions & 2 deletions trunk/drivers/scsi/mesh.c
Original file line number Diff line number Diff line change
Expand Up @@ -1850,7 +1850,8 @@ static int mesh_probe(struct macio_dev *mdev, const struct of_device_id *match)
{
struct device_node *mesh = macio_get_of_node(mdev);
struct pci_dev* pdev = macio_get_pci_dev(mdev);
int tgt, *cfp, minper;
int tgt, minper;
const int *cfp;
struct mesh_state *ms;
struct Scsi_Host *mesh_host;
void *dma_cmd_space;
Expand Down Expand Up @@ -1939,7 +1940,7 @@ static int mesh_probe(struct macio_dev *mdev, const struct of_device_id *match)
ms->tgts[tgt].current_req = NULL;
}

if ((cfp = (int *) get_property(mesh, "clock-frequency", NULL)))
if ((cfp = get_property(mesh, "clock-frequency", NULL)))
ms->clk_freq = *cfp;
else {
printk(KERN_INFO "mesh: assuming 50MHz clock frequency\n");
Expand Down

0 comments on commit 58d1911

Please sign in to comment.