mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
of: Always use 'struct device.of_node' to get device node pointer.
The following structure elements duplicate the information in 'struct device.of_node' and so are being eliminated. This patch makes all readers of these elements use device.of_node instead. (struct of_device *)->node (struct dev_archdata *)->prom_node (sparc) (struct dev_archdata *)->of_node (powerpc & microblaze) Signed-off-by: Grant Likely <[email protected]>
This commit is contained in:
parent
d12d42f744
commit
61c7a080a5
157 changed files with 497 additions and 488 deletions
|
|
@ -577,7 +577,7 @@ static int __devinit cpwd_probe(struct of_device *op,
|
|||
* interrupt_mask register cannot be written, so no timer
|
||||
* interrupts can be masked within the PLD.
|
||||
*/
|
||||
str_prop = of_get_property(op->node, "model", NULL);
|
||||
str_prop = of_get_property(op->dev.of_node, "model", NULL);
|
||||
p->broken = (str_prop && !strcmp(str_prop, WD_BADMODEL));
|
||||
|
||||
if (!p->enabled)
|
||||
|
|
|
|||
Loading…
Reference in a new issue