]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/video: fsl-diu-fb: improve device tree usage
authorTimur Tabi <timur@freescale.com>
Thu, 15 Sep 2011 21:44:50 +0000 (16:44 -0500)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Sun, 18 Sep 2011 20:08:56 +0000 (20:08 +0000)
commit99b953412e5db8e218a85563739c246aa0a4b5a5
tree2cf13795aab4c4765dca8db306a78e6bc9b5cb36
parentba36e2980ad4104b434712667aa295525b7dbb40
drivers/video: fsl-diu-fb: improve device tree usage

Implement various improvements to the way the Freescale DIU framebuffer
driver access the device tree.

1) Use of_iomap() instead of of_address_to_resource() and ioremap()

2) Use be32_to_cpup() instead of directly dereferencing the device_node
   pointer.

3) Rename variable 'ofdev' to 'pdev' to avoid any confusion that it's
   a platform_device pointer, not an of_device pointer (of_device no
   longer exists).

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/fsl-diu-fb.c