basic_mmio_gpio: detect output method at probe time
authorJamie Iles <jamie@jamieiles.com>
Fri, 20 May 2011 06:40:16 +0000 (00:40 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 20 May 2011 06:40:16 +0000 (00:40 -0600)
commite027d6f9d52d9ccabb307d0cb0265de3481b1e9e
treec692bb9e3a99d96e0655756d36fe821604945025
parent364b5e871839fafffa851bbff9ecf64ac641023c
basic_mmio_gpio: detect output method at probe time

Rather than detecting the output method each time in the .set()
callback, do it at probe time and set the appropriate callback.

Changes since v2: moved the reg_dat initialization into
bgpio_setup_io().

Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Acked-by: Anton Vorontsov <cbouatmailru@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/basic_mmio_gpio.c