]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
driver-core: remove conditionals around devicetree pointers
authorGrant Likely <grant.likely@secretlab.ca>
Fri, 21 Jan 2011 16:24:48 +0000 (09:24 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 21 Jan 2011 16:24:48 +0000 (09:24 -0700)
commitc9e358dfc4a8cb2227172ef77908c2e0ee17bcb9
tree0bba0d79151fc7fab5feb6f9507ec9748b2ba587
parentc56eb8fb6dccb83d9fe62fd4dc00c834de9bc470
driver-core: remove conditionals around devicetree pointers

Having conditional around the of_match_table and the of_node pointers
turns out to make driver code use ugly #ifdef blocks.  Drop the
conditionals and remove the #ifdef blocks from the affected drivers.

Also tidy up minor whitespace issues within the same hunks.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/busses/i2c-ocores.c
drivers/i2c/i2c-core.c
drivers/mmc/host/mmc_spi.c
drivers/net/ethoc.c
drivers/spi/pxa2xx_spi.c
drivers/spi/pxa2xx_spi_pci.c
drivers/spi/xilinx_spi.c
include/linux/device.h
include/linux/i2c.h
include/linux/of.h