From patchwork Sun May 3 18:13:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 6321651 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8A0A3BEEE1 for ; Sun, 3 May 2015 18:13:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 133A520392 for ; Sun, 3 May 2015 18:13:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2EDED2035D for ; Sun, 3 May 2015 18:13:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751308AbbECSNk (ORCPT ); Sun, 3 May 2015 14:13:40 -0400 Received: from mail-lb0-f180.google.com ([209.85.217.180]:32836 "EHLO mail-lb0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751294AbbECSNj (ORCPT ); Sun, 3 May 2015 14:13:39 -0400 Received: by lbbzk7 with SMTP id zk7so92222109lbb.0; Sun, 03 May 2015 11:13:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=5qsLu+lHXzqJ5r2R0i2PtMnCdqDdjefJ6Fye+ktGWi0=; b=e/21BK0IK7K/xKFbCFQZeaYP9tIM/vXBqAEh00EdZw/XtPJndi7hPBbME4sZk9QDxJ BLSPTGSHqeRGEnz/adh4R2t4ZBScwH7i/jkZOfZ+P8nxFKX2k7n2blcink6uiuthSZys iip8SytsW1ePcgGKZ4jwo2P4EwY7DfrnDP5Jhq++XmtBB1nldILqFDMU/5Tb4ZYJoCFB 5ghg7fW7XzDi1lkKakFx59MCC+VvwlMfQsgfOhdi9RsWjoXDLgjQMaoC6XDXOEyVHfNB WLc10sCpbgaMotv26+JUcZqu7V06pYB+vQDbC3dK9E54g1ZxFfzmZTapiIASQYQ4ibKD TmYQ== X-Received: by 10.112.154.198 with SMTP id vq6mr16586104lbb.110.1430676817725; Sun, 03 May 2015 11:13:37 -0700 (PDT) Received: from anarsoul-thinkpad.localdomain ([212.98.188.148]) by mx.google.com with ESMTPSA id m8sm2829759lbs.17.2015.05.03.11.13.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 03 May 2015 11:13:37 -0700 (PDT) From: Vasily Khoruzhick To: Kukjin Kim , Wolfram Sang , linux-samsung-soc@vger.kernel.org, linux-i2c@vger.kernel.org Cc: Vasily Khoruzhick Subject: [PATCH] i2c: s3c2410: fix oops in suspend callback for non-dt platforms Date: Sun, 3 May 2015 21:13:10 +0300 Message-Id: <1430676790-30500-1-git-send-email-anarsoul@gmail.com> X-Mailer: git-send-email 2.3.7 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Initialize sysreg by default, otherwise driver will crash in suspend callback. Signed-off-by: Vasily Khoruzhick Reviewed-by: Krzysztof Kozlowski --- drivers/i2c/busses/i2c-s3c2410.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c index 958c8db..297e9c9 100644 --- a/drivers/i2c/busses/i2c-s3c2410.c +++ b/drivers/i2c/busses/i2c-s3c2410.c @@ -1143,6 +1143,7 @@ static int s3c24xx_i2c_probe(struct platform_device *pdev) return -ENOMEM; i2c->quirks = s3c24xx_get_device_quirks(pdev); + i2c->sysreg = ERR_PTR(-ENOENT); if (pdata) memcpy(i2c->pdata, pdata, sizeof(*pdata)); else