From: Sam Ravnborg <sam@ravnborg.org>
To: Marco Felsch <m.felsch@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] i2c: introduce device_i2c_driver() macro
Date: Thu, 18 Oct 2018 17:42:04 +0200 [thread overview]
Message-ID: <20181018154204.GD2206@ravnborg.org> (raw)
In-Reply-To: <20181018101931.11417-1-m.felsch@pengutronix.de>
Hi Marco
> diff --git a/drivers/video/mtl017.c b/drivers/video/mtl017.c
> index 1a1f686223..085ea110ba 100644
> --- a/drivers/video/mtl017.c
> +++ b/drivers/video/mtl017.c
> @@ -16,7 +16,6 @@
> *
> */
> #include <common.h>
> -#include <init.h>
> #include <driver.h>
> #include <xfuncs.h>
> #include <errno.h>
> @@ -270,11 +269,4 @@ static struct driver_d twl_driver = {
> .name = "mtl017",
> .probe = mtl017_probe,
> };
> -
> -static int mtl017_init(void)
> -{
> - i2c_driver_register(&twl_driver);
> - return 0;
> -}
> -
> -device_initcall(mtl017_init);
> +device_i2c_driver(twl_driver);
Not related to your patch, but it looks strange that
the mtl017 file has a twl_driver.
It looks like a copy-paste issue from the past.
Sam
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2018-10-18 15:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-18 10:19 [PATCH] i2c: introduce device_i2c_driver() macro Marco Felsch
2018-10-18 15:42 ` Sam Ravnborg [this message]
2018-10-18 15:51 ` Marco Felsch
2018-10-19 11:54 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181018154204.GD2206@ravnborg.org \
--to=sam@ravnborg.org \
--cc=barebox@lists.infradead.org \
--cc=m.felsch@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.