usb: phy: use kzalloc to allocate struct tegra_usb_phy
authorVenu Byravarasu <vbyravarasu@nvidia.com>
Sat, 12 Jan 2013 00:31:29 +0000 (17:31 -0700)
committerStephen Warren <swarren@nvidia.com>
Mon, 28 Jan 2013 18:20:04 +0000 (11:20 -0700)
commit5b26c94cdc1a201f3ae1aa75bf8963da53e1aa71
treeafd5a8653a23f7c25cd8f82fbfe70278b832313d
parent16a665f805532ef3e3ff98fdbe0029dfee02df62
usb: phy: use kzalloc to allocate struct tegra_usb_phy

Use kzalloc instead of kmalloc to allocate struct tegra_usb_phy.
This ensures that all function pointers in member u_phy are
initialized to NULL.

Signed-off-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
drivers/usb/phy/tegra_usb_phy.c