Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5292969imm; Tue, 21 Aug 2018 09:16:57 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY105Fjz+RJgtgD3ihvRQ20i7UsPDqqiCmxmf+ZjtFjOhdGAo4A2OWgR0b4kMPxEWkchhua X-Received: by 2002:a62:86ca:: with SMTP id x193-v6mr2308730pfd.252.1534868217447; Tue, 21 Aug 2018 09:16:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534868217; cv=none; d=google.com; s=arc-20160816; b=rpUxAiZ7JEiJXKaC2DBO2pRpzJn2M4TRI1CKMBXjuaVz3tNPf9w1BRlKehot5P+2w9 aacNDUaaPk0JduEyyqE7kU8NOzqgdcp6ZICqYTrkisJ1My7XVzjiOOUPWEW+0kjo6GL4 rxhKYVlUPpNXrgP6k8/5OG9Hcoz6OFg0A2ygA4iafL6JccsecztzdXhWhnJeyWooJs2d Mk5VDZjpRmnP2bE9WWIK/VlWNDiCnE8QnY1R9zVh+xumRuK3jnq2Vtsbrm/s5oJeD61z SdQO/mCuKgoh3OW+fpJqO4TeGCYz9nHR8tcDRDnpg87YFF64nrWyJUOEg6hOLru0s50f ER+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=3Gk0RyL+JY4us236hlAyW7jZ/UezWkAaOTG9LaGHQ/U=; b=u5XbKHhSM/COODfqhZUeSvIfvnfx7OXTeKRjF52hZQgsHWR4pjGrjQ0mgurXtz+5tA FurckLnWtQ/Atz+LgSTT7msKkRpCcp8xbdZ0qoJUikIcu4Q5jlJQxy7Nbwu92Ib4YJGZ Jyc/keq9/4mTVvq/vMqYdrBU/D6/pB3nFzkNdcIbUeJ4MI5ODYBFKWXtIOp+uaOgnUPw 4AODaEqT18kMnWUOYhSbAjiK1KlhfVyr84XSVFCKbuXXXM5DIWhUqxKy4Yr9RUeb6RYx 4n824Bk3chp4Zp+Ucf/oPgF16rA363TQlJpyML3WNjWTuWiQKJkT/BT3pEHJf7Eg7tki PCxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h2HYunVT; 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 v18-v6si12714988pgl.171.2018.08.21.09.16.31; Tue, 21 Aug 2018 09:16:57 -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=h2HYunVT; 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 S1727363AbeHURwW (ORCPT + 99 others); Tue, 21 Aug 2018 13:52:22 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:34437 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726679AbeHURwV (ORCPT ); Tue, 21 Aug 2018 13:52:21 -0400 Received: by mail-ed1-f68.google.com with SMTP id h1-v6so10787716eds.1 for ; Tue, 21 Aug 2018 07:31:57 -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:in-reply-to:references; bh=3Gk0RyL+JY4us236hlAyW7jZ/UezWkAaOTG9LaGHQ/U=; b=h2HYunVT0yPNzJXr7CBKkgXE1KoVin5/E7fg6E8FYRsMVj09CJXqSMQ+jQbrH52WOQ lMtAs3TvwfQ1vJ4HlVcjCgbj2JeQC1QpyI5kr11p204RG6AonHLJP6Gmx3RaCfVbHStx /pdhv3PVu9XvZ82ABDxNqG8TM2uvASSvzf/46ZSc3bkKGezA/Y9kgbcUetu7pX/C85C0 z/vek1OB8adusgwPX7Bu8bFS+Iv5MHitYlIKaKRdsgiT5x3BQvMnJT747pF6RXIPMshV Lhl5p1M3MYHqoGTiP9518IIyJHbsAdNW2t5qzuEOIk2YU/1vdj9/v/IMwwRJ33qccVlp hLVA== 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:in-reply-to :references; bh=3Gk0RyL+JY4us236hlAyW7jZ/UezWkAaOTG9LaGHQ/U=; b=hMNr24oB9LSxLFa/KHsAeseJwuVzMtGVu+QZbGMzDRNJrzLAQIuS+1MK9JGzcpQZ2H yTEzeWy5UW6eKcMTpbsQqOot3Mom/yTm42ypVkIbM85CXzZE75c3PG9dLZCVtvFwkFba Xug+lt/grOlXUuHjYnyv/upwglhWPmMETW5U5xGkA3LzEBrYXAdZts9LdPnA4ylmHYlT UeIMSRpw/fTl/4YjErAy6ZrueSItOvm+z5ihJd3VF+5XfaGwS9e0DJxX5hUI6KGgKxR8 tct1I8Jc7KPl1SEerBj7bF7fD35EXkqgGd6y+dVhQKq55ZIv8AEG92d2TZhnPgUe5W/K TWEA== X-Gm-Message-State: APzg51AnkhH8M69ztNUCZNhW/2bMdatqgAhe/MbALgobJUidA1jHOhK4 zpV08exGm59vZg53KhKNqjev7Gjo X-Received: by 2002:a50:97c8:: with SMTP id f8-v6mr8532691edb.28.1534861916955; Tue, 21 Aug 2018 07:31:56 -0700 (PDT) Received: from neopili.qtec.com (cpe.xe-3-0-1-778.vbrnqe10.dk.customer.tdc.net. [80.197.57.18]) by smtp.gmail.com with ESMTPSA id n17-v6sm6766144edq.10.2018.08.21.07.31.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Aug 2018 07:31:55 -0700 (PDT) From: Ricardo Ribalda Delgado To: David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Zhouyang Jia , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Ricardo Ribalda Delgado Subject: [PATCH 1/8] mtd: maps: gpio-addr-flash: Replace custom printk Date: Tue, 21 Aug 2018 16:31:45 +0200 Message-Id: <20180821143152.32293-2-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180821143152.32293-1-ricardo.ribalda@gmail.com> References: <20180821143152.32293-1-ricardo.ribalda@gmail.com> 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.18.0