Browse Source

Merge remote-tracking branch 'regulator/topic/s5m8767' into v3.9-rc8

Mark Brown 12 years ago
parent
commit
eea8e85e3b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/regulator/s5m8767.c

+ 1 - 1
drivers/regulator/s5m8767.c

@@ -549,7 +549,7 @@ static int s5m8767_pmic_dt_parse_pdata(struct platform_device *pdev,
 
 	rmode = devm_kzalloc(&pdev->dev, sizeof(*rmode) *
 				pdata->num_regulators, GFP_KERNEL);
-	if (!rdata) {
+	if (!rmode) {
 		dev_err(iodev->dev,
 			"could not allocate memory for regulator mode\n");
 		return -ENOMEM;