[POWERPC] scsi: Constify & voidify get_property()
Now that get_property() returns a void *, there's no need to cast its return value. Also, treat the return value as const, so we can constify get_property later. powerpc-specific scsi driver changes. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
committed by
Paul Mackerras
parent
b04e3dd4ab
commit
294ef16a2e
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user