Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp103559imm; Wed, 3 Oct 2018 12:39:39 -0700 (PDT) X-Google-Smtp-Source: ACcGV63Sv4ZFPA/sj2cmMvXZcRIYdqHqbeYEMRfpW9ZsFmi2jk7x0OHhVW9Z4HXcn2NiiU0wnBr1 X-Received: by 2002:a63:ac11:: with SMTP id v17-v6mr2745093pge.196.1538595579242; Wed, 03 Oct 2018 12:39:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538595579; cv=none; d=google.com; s=arc-20160816; b=Wf2f+fTZKPerCwcbmtMCkJnKrsPLmCz/vuTwpoTdysay3wof5V2i6v9tdulucSQ/ao Z1Ifn2v2zHDm2Alu44q36/79LLB53qfMQiKumQAo1BRkON0eTFBbBOB8oKpCMQ2J1IJl Aqzr6HDnFTVUcUs5J8yFhWJyvZRwMIJLvbE6PX+VA6gxhKhFUYtROzHZ6BnHfNqYzqLH 2e/xBrqP7fDlqr+FT8ANkjVVutwoLLV8g8ECE2+AOwX87XzuhPfn5ektMoX69j1Bb+z8 Fn2HP0otIaDj05ZVZ4K3XpTCrqAzthifx+A/7jEewk0wTGvZ6SxJ5j30LqGReVG+AVGr fN+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=07UVT8AT/WIvxk7YqGQ2CULDktLqJYK6DbMGdKzq18o=; b=MVlsDbnEtBMazpyFZjXtVp6/2jbDZaF2Oxn2mNi5KLeBcP/s4TsWfZ4YAWEfVdDRKr VLGcMjY2dndaMBZaihvixG0oMADvbVkv490P8nAKs0enbfe2NFuwXgWxqBwwMGQczbLf 7nZz9tnuFl6la4Vc7giTbyXGYPeI3bMWGg1wADlhx7uHbU6AE4PSudogbfQG8ElEo0PR h1zuOnT3YyNxjgnIquJWxk7m/xmnwuFITnzyruZbrEz59pkzjGASlL2SjMp3UxDFchHW 8FM1IuoZXIlvrjkQ3NRxUr6PA4CNzZS2Ba7XaO+DK7OW5oWuHmTF82M93JZFy1WyTWpn feLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="uRee/Yup"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j185-v6si2397476pgc.419.2018.10.03.12.39.24; Wed, 03 Oct 2018 12:39:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="uRee/Yup"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727245AbeJDC2t (ORCPT + 99 others); Wed, 3 Oct 2018 22:28:49 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:41033 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726964AbeJDC2t (ORCPT ); Wed, 3 Oct 2018 22:28:49 -0400 Received: by mail-ed1-f65.google.com with SMTP id f38-v6so6430596edd.8 for ; Wed, 03 Oct 2018 12:39:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=07UVT8AT/WIvxk7YqGQ2CULDktLqJYK6DbMGdKzq18o=; b=uRee/Yupj1+ZPGRaxOK2b8xZbnlW4WyQn8krI9eQW/rrerl/CfSaUPYUMF8nT/tmz+ Ar1XEJSIZThRU1VbhNQ0em0qEC+8W4awQTOT1ytQYJgNvvH6uLT5yg1mto0zM9vIbmKF C4kGDaeYyRvIlsRlyONL4+OGEwtxKD105MTRm1tqvSe7ik4YTjZSP+EfhxcoJRWVUf6N Y/ez55i9NqbW7NjhtUOhfoA6x4Nk3FfhXVgKMchf0uwaGw0t6sEtzkd350UmvocD81Fd Q4+10gTghEK2Ql/pOpExDCkoxkxyX4LN9NVkCxItb7D4qmEBCBJfbjnPgOT3ouRv6nCo lDaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=07UVT8AT/WIvxk7YqGQ2CULDktLqJYK6DbMGdKzq18o=; b=Dra2wUaL4u5h9TTnDZePqoFBrRbdkpYXd2O86YGptCouNvRaRESjbzCAIIkfcdUzm4 uxmE/o2CLt0hK0WM28dY37BPOTUYHRsBQpZOzV1NsGMcTDJCE5/vnWqe0vbiY3lPvhRF PaHkZvtdFZL42R3tUzQ+EsrwgiWHBOWkiDXioZXcgNUS6iKEkIj8US9rey8NUqpzJOs+ fGNMohBkrGh5Is7ArcnInHexoe5XJL47nPJkyRCceCdz7Een1m6CZZJ8wmMrVnBJJR10 Ir1OqhvMBMhgvfqK3KlEVYrSHqn9WVpaErcpJQe7vJf4NPw28L5GXmVHqDqMh5/0FdFS sHcQ== X-Gm-Message-State: ABuFfogR9uLAo9rtykgAM987rXA1OFatZv8Zz5zu0Azi4rZK/2a8YHHG +WBaPUIcxBn/6+/8N86qtd8= X-Received: by 2002:aa7:c406:: with SMTP id j6-v6mr4404678edq.134.1538595541851; Wed, 03 Oct 2018 12:39:01 -0700 (PDT) Received: from piling.lan (80-71-134-83.u.parknet.dk. [80.71.134.83]) by smtp.gmail.com with ESMTPSA id b49-v6sm765263eda.70.2018.10.03.12.39.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Oct 2018 12:39:00 -0700 (PDT) From: Ricardo Ribalda Delgado To: David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Zhouyang Jia , linux-mtd@lists.infradead.org, open list Cc: Ricardo Ribalda Delgado Subject: [PATCH v5 1/8] mtd: maps: gpio-addr-flash: Replace custom printk Date: Wed, 3 Oct 2018 21:38:52 +0200 Message-Id: <20181003193859.23928-1-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use preferred print methods dev_* Signed-off-by: Ricardo Ribalda Delgado --- drivers/mtd/maps/gpio-addr-flash.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/mtd/maps/gpio-addr-flash.c b/drivers/mtd/maps/gpio-addr-flash.c index 9d9723693217..17be47f72973 100644 --- a/drivers/mtd/maps/gpio-addr-flash.c +++ b/drivers/mtd/maps/gpio-addr-flash.c @@ -25,11 +25,7 @@ #include #include -#define pr_devinit(fmt, args...) \ - ({ static const char __fmt[] = fmt; printk(__fmt, ## args); }) - #define DRIVER_NAME "gpio-addr-flash" -#define PFX DRIVER_NAME ": " /** * struct async_state - keep GPIO flash state @@ -250,7 +246,7 @@ static int gpio_flash_probe(struct platform_device *pdev) i = 0; do { if (gpio_request(state->gpio_addrs[i], DRIVER_NAME)) { - pr_devinit(KERN_ERR PFX "failed to request gpio %d\n", + dev_err(&pdev->dev, "failed to request gpio %d\n", state->gpio_addrs[i]); while (i--) gpio_free(state->gpio_addrs[i]); @@ -260,8 +256,8 @@ static int gpio_flash_probe(struct platform_device *pdev) gpio_direction_output(state->gpio_addrs[i], 0); } while (++i < state->gpio_count); - pr_devinit(KERN_NOTICE PFX "probing %d-bit flash bus\n", - state->map.bankwidth * 8); + dev_notice(&pdev->dev, "probing %d-bit flash bus\n", + state->map.bankwidth * 8); state->mtd = do_map_probe(memory->name, &state->map); if (!state->mtd) { for (i = 0; i < state->gpio_count; ++i) -- 2.19.0