diff options
author | Petlozu Pravareshwar <petlozup@nvidia.com> | 2012-09-12 15:12:36 +0530 |
---|---|---|
committer | Mrutyunjay Sawant <msawant@nvidia.com> | 2012-09-13 07:01:29 -0700 |
commit | 441a643006ba7368494a13a44223ef85cc041c78 (patch) | |
tree | 298ac83c481f707a6af034aa2eea62120a44c0fa | |
parent | e2dcc0fff0bde89eced1482f3df763bfc7afd3a2 (diff) |
arm: tegra: usb_phy: set vbus_reg to NULL
Setting vbus_reg to NULL if regulator get
fails.
Bug 1047065
Change-Id: I574f58d46f226d70034a4f363103fd9763482292
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/131759
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
-rw-r--r-- | arch/arm/mach-tegra/usb_phy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/usb_phy.c b/arch/arm/mach-tegra/usb_phy.c index 9288144a1e11..2a7364c12753 100644 --- a/arch/arm/mach-tegra/usb_phy.c +++ b/arch/arm/mach-tegra/usb_phy.c @@ -315,6 +315,7 @@ struct tegra_usb_phy *tegra_usb_phy_open(struct platform_device *pdev) instance : %d\n", PTR_ERR(phy->vbus_reg), phy->inst); err = PTR_ERR(phy->vbus_reg); + phy->vbus_reg = NULL; goto fail_init; } } else { |