mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
NFC: microread: Drop platform data header file
Originally I only wanted to drop the unneeded inclusion of <linux/i2c.h>, but then noticed that struct microread_nfc_platform_data isn't actually used, and MICROREAD_DRIVER_NAME is redefined in the only file where it is used, so we can get rid of the header file and dead code altogether. Signed-off-by: Jean Delvare <[email protected]> Cc: Lauro Ramos Venancio <[email protected]> Cc: Aloisio Almeida Jr <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
dd215430dc
commit
87aca73737
3 changed files with 0 additions and 44 deletions
|
|
@ -246,18 +246,10 @@ static int microread_i2c_probe(struct i2c_client *client,
|
|||
const struct i2c_device_id *id)
|
||||
{
|
||||
struct microread_i2c_phy *phy;
|
||||
struct microread_nfc_platform_data *pdata =
|
||||
dev_get_platdata(&client->dev);
|
||||
int r;
|
||||
|
||||
dev_dbg(&client->dev, "client %p\n", client);
|
||||
|
||||
if (!pdata) {
|
||||
nfc_err(&client->dev, "client %p: missing platform data\n",
|
||||
client);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
phy = devm_kzalloc(&client->dev, sizeof(struct microread_i2c_phy),
|
||||
GFP_KERNEL);
|
||||
if (!phy)
|
||||
|
|
|
|||
Loading…
Reference in a new issue