diff options
author | Vincent Cuissard <cuissard@marvell.com> | 2015-06-11 15:00:19 +0300 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-06-12 00:40:23 +0300 |
commit | dc14bdef8762a8098b1da881b611d722e24fe787 (patch) | |
tree | 39d165e83956d979519c009fd282026c58fc2925 /drivers/nfc/nfcmrvl/usb.c | |
parent | 9961127d4bce6325e9a0b0fb105e0c85a6c62cb7 (diff) | |
download | linux-dc14bdef8762a8098b1da881b611d722e24fe787.tar.xz |
NFC: nfcmrvl: add platform_data and DT configuration
Declare nfcmrvl platform_data structure and few DT parameters
for nfcmrvl driver.
Signed-off-by: Vincent Cuissard <cuissard@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc/nfcmrvl/usb.c')
-rw-r--r-- | drivers/nfc/nfcmrvl/usb.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/nfc/nfcmrvl/usb.c b/drivers/nfc/nfcmrvl/usb.c index c4046b681bfa..aa3f3c1cff0a 100644 --- a/drivers/nfc/nfcmrvl/usb.c +++ b/drivers/nfc/nfcmrvl/usb.c @@ -302,6 +302,10 @@ static int nfcmrvl_probe(struct usb_interface *intf, struct nfcmrvl_private *priv; int i; struct usb_device *udev = interface_to_usbdev(intf); + struct nfcmrvl_platform_data config; + + /* No configuration for USB */ + memset(&config, 0, sizeof(config)); nfc_info(&udev->dev, "intf %p id %p\n", intf, id); @@ -339,7 +343,7 @@ static int nfcmrvl_probe(struct usb_interface *intf, init_usb_anchor(&drv_data->deferred); priv = nfcmrvl_nci_register_dev(drv_data, &usb_ops, - &drv_data->udev->dev, 0); + &drv_data->udev->dev, &config); if (IS_ERR(priv)) return PTR_ERR(priv); |