summaryrefslogtreecommitdiffstats
path: root/drivers/phy
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2014-02-03 13:55:03 +0530
committerKishon Vijay Abraham I <kishon@ti.com>2014-03-02 00:26:26 +0530
commitb6d790f793f0082df18f3f6c8a7b1b3fb255c88e (patch)
tree8751b9d133932edef1bdcc560ff2d4aac0e84675 /drivers/phy
parentcfbf8d4857c26a8a307fb7cd258074c9dcd8c691 (diff)
downloadop-kernel-dev-b6d790f793f0082df18f3f6c8a7b1b3fb255c88e.zip
op-kernel-dev-b6d790f793f0082df18f3f6c8a7b1b3fb255c88e.tar.gz
usb: phy: twl4030-usb: Silence checkpatch warnings
Silences the following warnings: WARNING: sizeof *twl should be sizeof(*twl) WARNING: sizeof *otg should be sizeof(*otg) Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/phy-twl4030-usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/phy/phy-twl4030-usb.c b/drivers/phy/phy-twl4030-usb.c
index c3ace1d..6c7cec7 100644
--- a/drivers/phy/phy-twl4030-usb.c
+++ b/drivers/phy/phy-twl4030-usb.c
@@ -661,7 +661,7 @@ static int twl4030_usb_probe(struct platform_device *pdev)
struct phy_provider *phy_provider;
struct phy_init_data *init_data = NULL;
- twl = devm_kzalloc(&pdev->dev, sizeof *twl, GFP_KERNEL);
+ twl = devm_kzalloc(&pdev->dev, sizeof(*twl), GFP_KERNEL);
if (!twl)
return -ENOMEM;
@@ -676,7 +676,7 @@ static int twl4030_usb_probe(struct platform_device *pdev)
return -EINVAL;
}
- otg = devm_kzalloc(&pdev->dev, sizeof *otg, GFP_KERNEL);
+ otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL);
if (!otg)
return -ENOMEM;
OpenPOWER on IntegriCloud