staging: dgap: Fixed sparse error: same symbol redeclared with different type
authorMasood Mehmood <ody.guru@gmail.com>
Tue, 18 Mar 2014 20:40:14 +0000 (13:40 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Mar 2014 23:22:27 +0000 (16:22 -0700)
commitfd54889b65cc32fc64e5a6c456fbf6aab4bd258a
tree0402bacfca972eebceafc1f0e5c3a7fbebd41ab8
parenta3acc83a4a2b8e1a6f8f3c5bdcfa3bb5f5f9e338
staging: dgap: Fixed sparse error: same symbol redeclared with different type

sparse reported dgap_do_fep_load is redeclared with different type. while
fixing, I noticed __user attribute is used incorrectly in declaration.
There is no need to define __user for firware->data.

Replaced the __user with 'const uchar *' from function dgap_do_fep_load and
did the same for function dgap_do_bios_load

patch generated against: next-20140318

Signed-off-by: Masood Mehmood <ody.guru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap.c