Skip to content
Commit 21dbfd29 authored by Remi Machet's avatar Remi Machet Committed by Paul Mackerras
Browse files

[POWERPC] Use default values if necessary in mv64x60 I2C initialization



I2C parameters freq_m and freq_n are assigned defaults in the code,
but if properties for those parameters are not found in the open
firmware description the init routine returns an error and doesn't
create the platform device.

This changes the code so that it doesn't return an error if the
properties are not found but instead uses the default values.

Signed-off-by: default avatarRemi Machet <(rmachet@slac.stanford.edu)>
Acked-by: default avatarDale Farnsworth <dale@farnsworth.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 839ad62e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment