i2c-qup: Remove probe failure when msm_i2c_config_gpio is not defined

This avoids empty functions being defined in the boards file.

Signed-off-by: Harini Jayaraman <harinij@codeaurora.org>
diff --git a/drivers/i2c/busses/i2c-qup.c b/drivers/i2c/busses/i2c-qup.c
index edb643b..c269787 100644
--- a/drivers/i2c/busses/i2c-qup.c
+++ b/drivers/i2c/busses/i2c-qup.c
@@ -1018,12 +1018,6 @@
 	} else
 		pclk = NULL;
 
-	if (!(pdata->msm_i2c_config_gpio)) {
-		dev_err(&pdev->dev, "config_gpio function not initialized\n");
-		ret = -ENOSYS;
-		goto err_config_failed;
-	}
-
 	/* We support frequencies upto FAST Mode(400KHz) */
 	if (pdata->clk_freq <= 0 ||
 			pdata->clk_freq > 400000) {
@@ -1134,7 +1128,8 @@
 		"QUP I2C adapter",
 		sizeof(dev->adapter.name));
 	dev->adapter.nr = pdev->id;
-	pdata->msm_i2c_config_gpio(dev->adapter.nr, 1);
+	if (pdata->msm_i2c_config_gpio)
+		pdata->msm_i2c_config_gpio(dev->adapter.nr, 1);
 
 	dev->suspended = 0;
 	mutex_init(&dev->mlock);