get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2215503/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2215503,
    "url": "http://patchwork.ozlabs.org/api/patches/2215503/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20260324-deverr-v1-4-7e591cce33a3@gmail.com/",
    "project": {
        "id": 35,
        "url": "http://patchwork.ozlabs.org/api/projects/35/?format=api",
        "name": "Linux I2C development",
        "link_name": "linux-i2c",
        "list_id": "linux-i2c.vger.kernel.org",
        "list_email": "linux-i2c@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260324-deverr-v1-4-7e591cce33a3@gmail.com>",
    "list_archive_url": null,
    "date": "2026-03-24T18:26:52",
    "name": "[04/10] i2c: stm32f7: Replace dev_err() with dev_err_probe() in probe function",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "685dea477ac7f9aa5cae1f31ca087eaf3bc8e330",
    "submitter": {
        "id": 92959,
        "url": "http://patchwork.ozlabs.org/api/people/92959/?format=api",
        "name": "Atharv Dubey",
        "email": "atharvd440@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20260324-deverr-v1-4-7e591cce33a3@gmail.com/mbox/",
    "series": [
        {
            "id": 497327,
            "url": "http://patchwork.ozlabs.org/api/series/497327/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/list/?series=497327",
            "date": "2026-03-24T18:26:54",
            "name": "i2c: Replace dev_err() with dev_err_probe()",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/497327/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2215503/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2215503/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-i2c+bounces-16712-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-i2c@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=qAkfYh2x;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=linux-i2c+bounces-16712-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"qAkfYh2x\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.216.48",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com"
        ],
        "Received": [
            "from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fgJY15pGcz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 25 Mar 2026 05:32:05 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 6DC2D314CE6B\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 24 Mar 2026 18:27:53 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id ECC36383C64;\n\tTue, 24 Mar 2026 18:27:52 +0000 (UTC)",
            "from mail-pj1-f48.google.com (mail-pj1-f48.google.com\n [209.85.216.48])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 6BEA237A48B\n\tfor <linux-i2c@vger.kernel.org>; Tue, 24 Mar 2026 18:27:51 +0000 (UTC)",
            "by mail-pj1-f48.google.com with SMTP id\n 98e67ed59e1d1-359fea895b5so1045817a91.0\n        for <linux-i2c@vger.kernel.org>; Tue, 24 Mar 2026 11:27:51 -0700 (PDT)",
            "from [127.0.1.1] ([103.216.213.160])\n        by smtp.gmail.com with ESMTPSA id\n 98e67ed59e1d1-35c0d6060b5sm350576a91.17.2026.03.24.11.27.41\n        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n        Tue, 24 Mar 2026 11:27:49 -0700 (PDT)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774376872; cv=none;\n b=AkDlH9jHdwF9wg3K6d2Vhzm3KmVa3JhxOy/DrrNIt6ZzMI7qnxDIBIl9s/0AALijttDf7xNUGv2kKCoJk9T3OMPi0fTbaVZlkoQc9p7cHS5bRSceSXyZtrQKb3f3xnh9NgSlL882jgSJRK7hKpbxHhBXcfX+J+hI5W/kUp41nTU=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774376872; c=relaxed/simple;\n\tbh=INy7r9nqYAh8xRryTtp2F3L3u24eOCBCoOZXV2Ktc3E=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=QlfFYq0keCiHYsWx9SjfkreUl9F+Plizes+AmH5qVNXF9Vv/7UAyxquSAiZDlIksRGsAu74t9t+Ayia29Lh6+5mTcY+ItKIYEWl2Ld0bpH/L5AqxtgrAD1ppDAyj2+pWhajO0KyR3XUAkq9089OZWZqOOp7/YFWrpkjkGCo9428=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=qAkfYh2x; arc=none smtp.client-ip=209.85.216.48",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1774376870; x=1774981670;\n darn=vger.kernel.org;\n        h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n         :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n         :reply-to;\n        bh=YOUVvE5FNmjkaySdFPrc+7+hSpPNsoY2HaGuj8AkFfI=;\n        b=qAkfYh2xYQHXiHGQvivSqGXRcMqtWLP3pggJM1DGosW4QJUlcSjbPvSm6kfq2uXYLi\n         Ou8tZ65iGdJQ/xmJn+SXVToRlUTmNYFpdCB9UCWhQFG/2sXdWrFD7YHT0HirOt8/aQKM\n         Y6pAVVpbtz1BjwZj+b5EzYj9Et0yFcDBVNo/lS+qimPsBuYxQjAGwZRP0+LRFRCGVhoz\n         NA0txW/yQdxnUtw47dcAV8cgCFDLi1U0eaphyo7BBXWsF46CmTRIRK1p/rNxvX4PbUSR\n         j5rKQwmNGjU9/LoAVe7HlzVvKhnPekeTATFynMs651ziTN9iXQ2/pe+bhBJT22TcqTq3\n         ea6A==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1774376870; x=1774981670;\n        h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n         :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to\n         :cc:subject:date:message-id:reply-to;\n        bh=YOUVvE5FNmjkaySdFPrc+7+hSpPNsoY2HaGuj8AkFfI=;\n        b=VVd95aQt2H1e1VbGjbwyhaK4xWEmc7lIuqDFr7EHx6Y9VWKlZLNBwnOOrMDh/HmsKK\n         7ZqoXHHB4tuAnZPKkzlh1mDYpZUGodx5m4/Sy/2C5iZ+AIMSulZoqNpKvit3M8sEOJKC\n         S81EoyVUvjBk1ka+TEbJm3z+DjsuvpEw+uUW5wuXzrFAusLm1F1dP9LK0snUphdQPaFt\n         EBLPM2kZH2fpl6X/ikI5u5D28/hZDuhHaY7oGZ4E3DFnsvX0mH6Lxgwtmm04vXeFz6t5\n         1zt6fDhhNx1MOinqXqVqZhdPv3XWIpAjQKNB3cK6E5Ewk9CplbHShqDeap8Se366DHza\n         y3Tw==",
        "X-Gm-Message-State": "AOJu0Yyqw6FNECUSyeo77EEI0CZnhSkvzL909XAlEKnhZxkGR6nJVX+A\n\tptTzYscSXWeClhn3APp6cgn4Hq1EvXfqRAaS9Rrgilg081nR01rPKf8dzbyCvUvmSbQ=",
        "X-Gm-Gg": "ATEYQzzcNsy7xwnjuCqFjFKNSyc4aTXyHbcPqUBsN+he5Hxl1KBY5MevqXjjaTH9r6Z\n\tq7jCATL54nNstW8s1H3eKA1ZWkmGC4+56Yx6eCZCR3o4qe0KNTgZsCh+34yburuPmeuoU44r9qO\n\tG24qeSQ406ZRtG7ps9KqKhC3mhyU3wCX+8Rsyo8H1Dqb2BQwy9s3RXNSWuykpZF26REOHZKwG+l\n\tpQPQy84X3xEggs85aj7aeA0rbU94jQyxaKRhosdbpT43F8aElPR0s3OBreVewewfDMYvpCkzINa\n\tjvcMBm8LIWMITcSKn/+bWBeZ7wN8wT+KkDLDrkotYVStydouQgA4kn4xxyBycxCwl+aF2UjQTFD\n\tpQe1Wdze3BlcI/VVCffA7/DXTNpDvsB4B3ZYhS42DawvwnkUbUw4fcWuw7nm2OWvhajTJgbwTpY\n\tyqBBnD0xH2TrfEJ1VpkY512LjqcMl68CK5YUE+",
        "X-Received": "by 2002:a17:90b:1dcd:b0:35b:a656:a60a with SMTP id\n 98e67ed59e1d1-35c0dcf48dbmr341601a91.8.1774376869963;\n        Tue, 24 Mar 2026 11:27:49 -0700 (PDT)",
        "From": "Atharv Dubey <atharvd440@gmail.com>",
        "Date": "Tue, 24 Mar 2026 23:56:52 +0530",
        "Subject": "[PATCH 04/10] i2c: stm32f7: Replace dev_err() with dev_err_probe()\n in probe function",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-i2c@vger.kernel.org",
        "List-Id": "<linux-i2c.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-i2c+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-i2c+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Message-Id": "<20260324-deverr-v1-4-7e591cce33a3@gmail.com>",
        "References": "<20260324-deverr-v1-0-7e591cce33a3@gmail.com>",
        "In-Reply-To": "<20260324-deverr-v1-0-7e591cce33a3@gmail.com>",
        "To": "Till Harbaum <till@harbaum.org>, Andi Shyti <andi.shyti@kernel.org>,\n Laxman Dewangan <ldewangan@nvidia.com>, Dmitry Osipenko <digetx@gmail.com>,\n Thierry Reding <thierry.reding@gmail.com>,\n Jonathan Hunter <jonathanh@nvidia.com>, Chen-Yu Tsai <wens@kernel.org>,\n Jernej Skrabec <jernej.skrabec@gmail.com>,\n Samuel Holland <samuel@sholland.org>,\n Pierre-Yves MORDRET <pierre-yves.mordret@foss.st.com>,\n Alain Volmat <alain.volmat@foss.st.com>,\n Maxime Coquelin <mcoquelin.stm32@gmail.com>,\n Alexandre Torgue <alexandre.torgue@foss.st.com>,\n Patrice Chotard <patrice.chotard@foss.st.com>,\n Orson Zhai <orsonzhai@gmail.com>,\n Baolin Wang <baolin.wang@linux.alibaba.com>,\n Chunyan Zhang <zhang.lyra@gmail.com>, Jean Delvare <jdelvare@suse.com>",
        "Cc": "linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org,\n linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org,\n linux-sunxi@lists.linux.dev, linux-stm32@st-md-mailman.stormreply.com,\n Enrico Zanda <e.zanda1@gmail.com>, Atharv Dubey <atharvd440@gmail.com>",
        "X-Mailer": "b4 0.14.3",
        "X-Developer-Signature": "v=1; a=ed25519-sha256; t=1774376818; l=6197;\n i=atharvd440@gmail.com; s=20260314; h=from:subject:message-id;\n bh=s9JDU7GcgsnDDFXsrCxagGOfCSdKXg3wGsXTsgZz2H0=;\n b=ah0pTzAjwcV8FwCOGin97Y4dMl89Nw1GTUGKElGrgDchfwSWIGhdZL4fJM5yOH/LB2Vze2ERu\n 5pFUk9n36AADxerpZp4V7L4H+yM/I6gEVGRW6UOTZNuNCinHlE0yV/c",
        "X-Developer-Key": "i=atharvd440@gmail.com; a=ed25519;\n pk=T6i1xWOKT/RUSDYATSgyVG/4X7ac8jPjRSG1mMAcqVk="
    },
    "content": "From: Enrico Zanda <e.zanda1@gmail.com>\n\nThis simplifies the code while improving log.\n\nSigned-off-by: Enrico Zanda <e.zanda1@gmail.com>\nSigned-off-by: Atharv Dubey <atharvd440@gmail.com>\n---\n drivers/i2c/busses/i2c-stm32f7.c | 78 ++++++++++++++++------------------------\n 1 file changed, 30 insertions(+), 48 deletions(-)",
    "diff": "diff --git a/drivers/i2c/busses/i2c-stm32f7.c b/drivers/i2c/busses/i2c-stm32f7.c\nindex 70cb5822bf17..e7cc7f0fb56c 100644\n--- a/drivers/i2c/busses/i2c-stm32f7.c\n+++ b/drivers/i2c/busses/i2c-stm32f7.c\n@@ -481,28 +481,22 @@ static int stm32f7_i2c_compute_timing(struct stm32f7_i2c_dev *i2c_dev,\n \tint ret = 0;\n \n \tspecs = stm32f7_get_specs(setup->speed_freq);\n-\tif (specs == ERR_PTR(-EINVAL)) {\n-\t\tdev_err(i2c_dev->dev, \"speed out of bound {%d}\\n\",\n-\t\t\tsetup->speed_freq);\n-\t\treturn -EINVAL;\n-\t}\n+\tif (specs == ERR_PTR(-EINVAL))\n+\t\treturn dev_err_probe(i2c_dev->dev, -EINVAL, \"speed out of bound {%d}\\n\",\n+\t\t\t\t     setup->speed_freq);\n \n \tif ((setup->rise_time > specs->rise_max) ||\n-\t    (setup->fall_time > specs->fall_max)) {\n-\t\tdev_err(i2c_dev->dev,\n-\t\t\t\"timings out of bound Rise{%d>%d}/Fall{%d>%d}\\n\",\n-\t\t\tsetup->rise_time, specs->rise_max,\n-\t\t\tsetup->fall_time, specs->fall_max);\n-\t\treturn -EINVAL;\n-\t}\n+\t    (setup->fall_time > specs->fall_max))\n+\t\treturn dev_err_probe(i2c_dev->dev, -EINVAL,\n+\t\t\t\t     \"timings out of bound Rise{%d>%d}/Fall{%d>%d}\\n\",\n+\t\t\t\t     setup->rise_time, specs->rise_max,\n+\t\t\t\t     setup->fall_time, specs->fall_max);\n \n \ti2c_dev->dnf = DIV_ROUND_CLOSEST(i2c_dev->dnf_dt, i2cclk);\n-\tif (i2c_dev->dnf > STM32F7_I2C_DNF_MAX) {\n-\t\tdev_err(i2c_dev->dev,\n-\t\t\t\"DNF out of bound %d/%d\\n\",\n-\t\t\ti2c_dev->dnf * i2cclk, STM32F7_I2C_DNF_MAX * i2cclk);\n-\t\treturn -EINVAL;\n-\t}\n+\tif (i2c_dev->dnf > STM32F7_I2C_DNF_MAX)\n+\t\treturn dev_err_probe(i2c_dev->dev, -EINVAL,\n+\t\t\t\t     \"DNF out of bound %d/%d\\n\", i2c_dev->dnf * i2cclk,\n+\t\t\t\t     STM32F7_I2C_DNF_MAX * i2cclk);\n \n \t/*  Analog and Digital Filters */\n \taf_delay_min =\n@@ -567,8 +561,7 @@ static int stm32f7_i2c_compute_timing(struct stm32f7_i2c_dev *i2c_dev,\n \t}\n \n \tif (list_empty(&solutions)) {\n-\t\tdev_err(i2c_dev->dev, \"no Prescaler solution\\n\");\n-\t\tret = -EPERM;\n+\t\tret = dev_err_probe(i2c_dev->dev, -EPERM, \"no Prescaler solution\\n\");\n \t\tgoto exit;\n \t}\n \n@@ -624,8 +617,7 @@ static int stm32f7_i2c_compute_timing(struct stm32f7_i2c_dev *i2c_dev,\n \t}\n \n \tif (!s) {\n-\t\tdev_err(i2c_dev->dev, \"no solution at all\\n\");\n-\t\tret = -EPERM;\n+\t\tret = dev_err_probe(i2c_dev->dev, -EPERM, \"no solution at all\\n\");\n \t\tgoto exit;\n \t}\n \n@@ -674,11 +666,9 @@ static int stm32f7_i2c_setup_timing(struct stm32f7_i2c_dev *i2c_dev,\n \n \ti2c_parse_fw_timings(i2c_dev->dev, t, false);\n \n-\tif (t->bus_freq_hz > I2C_MAX_FAST_MODE_PLUS_FREQ) {\n-\t\tdev_err(i2c_dev->dev, \"Invalid bus speed (%i>%i)\\n\",\n-\t\t\tt->bus_freq_hz, I2C_MAX_FAST_MODE_PLUS_FREQ);\n-\t\treturn -EINVAL;\n-\t}\n+\tif (t->bus_freq_hz > I2C_MAX_FAST_MODE_PLUS_FREQ)\n+\t\treturn dev_err_probe(i2c_dev->dev, -EINVAL, \"Invalid bus speed (%i>%i)\\n\",\n+\t\t\t\t     t->bus_freq_hz, I2C_MAX_FAST_MODE_PLUS_FREQ);\n \n \tsetup->speed_freq = t->bus_freq_hz;\n \ti2c_dev->setup.rise_time = t->scl_rise_ns;\n@@ -686,10 +676,8 @@ static int stm32f7_i2c_setup_timing(struct stm32f7_i2c_dev *i2c_dev,\n \ti2c_dev->dnf_dt = t->digital_filter_width_ns;\n \tsetup->clock_src = clk_get_rate(i2c_dev->clk);\n \n-\tif (!setup->clock_src) {\n-\t\tdev_err(i2c_dev->dev, \"clock rate is 0\\n\");\n-\t\treturn -EINVAL;\n-\t}\n+\tif (!setup->clock_src)\n+\t\treturn dev_err_probe(i2c_dev->dev, -EINVAL, \"clock rate is 0\\n\");\n \n \tif (!of_property_read_bool(i2c_dev->dev->of_node, \"i2c-digital-filter\"))\n \t\ti2c_dev->dnf_dt = STM32F7_I2C_DNF_DEFAULT;\n@@ -698,8 +686,8 @@ static int stm32f7_i2c_setup_timing(struct stm32f7_i2c_dev *i2c_dev,\n \t\tret = stm32f7_i2c_compute_timing(i2c_dev, setup,\n \t\t\t\t\t\t &i2c_dev->timing);\n \t\tif (ret) {\n-\t\t\tdev_err(i2c_dev->dev,\n-\t\t\t\t\"failed to compute I2C timings.\\n\");\n+\t\t\tdev_err_probe(i2c_dev->dev, ret,\n+\t\t\t\t      \"failed to compute I2C timings.\\n\");\n \t\t\tif (setup->speed_freq <= I2C_MAX_STANDARD_MODE_FREQ)\n \t\t\t\tbreak;\n \t\t\tsetup->speed_freq =\n@@ -710,10 +698,8 @@ static int stm32f7_i2c_setup_timing(struct stm32f7_i2c_dev *i2c_dev,\n \t\t}\n \t} while (ret);\n \n-\tif (ret) {\n-\t\tdev_err(i2c_dev->dev, \"Impossible to compute I2C timings.\\n\");\n-\t\treturn ret;\n-\t}\n+\tif (ret)\n+\t\treturn dev_err_probe(i2c_dev->dev, ret, \"Impossible to compute I2C timings.\\n\");\n \n \ti2c_dev->analog_filter = of_property_read_bool(i2c_dev->dev->of_node,\n \t\t\t\t\t\t       \"i2c-analog-filter\");\n@@ -2175,10 +2161,8 @@ static int stm32f7_i2c_probe(struct platform_device *pdev)\n \t\treturn -ENOMEM;\n \n \tsetup = of_device_get_match_data(&pdev->dev);\n-\tif (!setup) {\n-\t\tdev_err(&pdev->dev, \"Can't get device data\\n\");\n-\t\treturn -ENODEV;\n-\t}\n+\tif (!setup)\n+\t\treturn dev_err_probe(&pdev->dev, -ENODEV, \"Can't get device data\\n\");\n \ti2c_dev->setup = *setup;\n \n \ti2c_dev->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);\n@@ -2279,7 +2263,7 @@ static int stm32f7_i2c_probe(struct platform_device *pdev)\n \n \t\tret = dev_pm_set_wake_irq(i2c_dev->dev, irq_event);\n \t\tif (ret) {\n-\t\t\tdev_err(i2c_dev->dev, \"Failed to set wake up irq\\n\");\n+\t\t\tdev_err_probe(i2c_dev->dev, ret, \"Failed to set wake up irq\\n\");\n \t\t\tgoto clr_wakeup_capable;\n \t\t}\n \t}\n@@ -2305,9 +2289,8 @@ static int stm32f7_i2c_probe(struct platform_device *pdev)\n \tif (i2c_dev->smbus_mode) {\n \t\tret = stm32f7_i2c_enable_smbus_host(i2c_dev);\n \t\tif (ret) {\n-\t\t\tdev_err(i2c_dev->dev,\n-\t\t\t\t\"failed to enable SMBus Host-Notify protocol (%d)\\n\",\n-\t\t\t\tret);\n+\t\t\tdev_err_probe(i2c_dev->dev, ret,\n+\t\t\t\t      \"failed to enable SMBus Host-Notify protocol\\n\");\n \t\t\tgoto i2c_adapter_remove;\n \t\t}\n \t}\n@@ -2315,9 +2298,8 @@ static int stm32f7_i2c_probe(struct platform_device *pdev)\n \tif (of_property_read_bool(pdev->dev.of_node, \"smbus-alert\")) {\n \t\tret = stm32f7_i2c_enable_smbus_alert(i2c_dev);\n \t\tif (ret) {\n-\t\t\tdev_err(i2c_dev->dev,\n-\t\t\t\t\"failed to enable SMBus alert protocol (%d)\\n\",\n-\t\t\t\tret);\n+\t\t\tdev_err_probe(i2c_dev->dev, ret,\n+\t\t\t\t      \"failed to enable SMBus alert protocol\\n\");\n \t\t\tgoto i2c_disable_smbus_host;\n \t\t}\n \t}\n",
    "prefixes": [
        "04/10"
    ]
}