summaryrefslogtreecommitdiffstats
path: root/include/linux/kfifo.h
diff options
context:
space:
mode:
authorDarren Hart <dvhart@linux.intel.com>2013-02-08 15:20:36 -0800
committerSamuel Ortiz <sameo@linux.intel.com>2013-02-14 00:26:45 +0100
commit5829e9b64e657560e840dc0ecfee177cb002cd69 (patch)
tree282ef54b0edf1c087abe14374ac69132cfdbc612 /include/linux/kfifo.h
parentc3e9e6b67db23ae678550f861b5679880481cfa3 (diff)
mfd: lpc_sch: Accomodate partial population of the MFD devices
The current probe aborts if any of the 3 base address registers are disabled. On a TunnelCreek system I am working on, this resulted in the SMBIOS and GPIO devices being removed when it couldn't read the base address for the watchdog timer. This patch accommodates partial population of the lpc_sch_cells array and only aborts if all the base address registers are disabled. A max size array is allocated and the individual device cells are added to it after their base addresses are successfully determined. This simplifies the code a bit by removing the need for the separate tunnelcreek cells array and combining some of the add/remove logic. Cc: Grant Likely <grant.likely@secretlab.ca>, Cc: Denis Turischev <denis@compulab.co.il>, Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Cc: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/kfifo.h')
0 files changed, 0 insertions, 0 deletions