mfd: sta2x11-mfd: Only add sta2x11_mfd if it hasn't already been added
authorDavide Ciminaghi <ciminaghi@gnudd.com>
Fri, 9 Nov 2012 14:19:56 +0000 (15:19 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 20 Nov 2012 11:21:15 +0000 (12:21 +0100)
commit8ec86a302a190bc4864928dd69f3f22066137b68
tree1bd7b823704cb6aa22ea5b7efe726cb8774418ea
parentb18adafccd497245a6bc5b867bf9cba7e01f8729
mfd: sta2x11-mfd: Only add sta2x11_mfd if it hasn't already been added

The pci probe method is called twice now, so we have to call
sta2x11_mfd_add() only once to avoid a -EBUSY error.

Signed-off-by: Davide Ciminaghi <ciminaghi@gnudd.com>
Acked-by: Alessandro Rubini <rubini@gnudd.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/sta2x11-mfd.c