kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* What is this MODULE_ALIAS() used for?
@ 2016-12-10  1:36 Perr Zhang
  2016-12-10  8:40 ` Giedrius Statkevičius
  2016-12-14 13:01 ` Aruna Hewapathirane
  0 siblings, 2 replies; 3+ messages in thread
From: Perr Zhang @ 2016-12-10  1:36 UTC (permalink / raw)
  To: kernelnewbies

source code:

MODULE_ALIAS("platform:sm501");

static const struct of_device_id of_sm501_match_tbl[] = {
    { .compatible = "smi,sm501", },
    { /* end */ }
};
MODULE_DEVICE_TABLE(of, of_sm501_match_tbl);

location: http://lxr.free-electrons.com/source/drivers/mfd/sm501.c#L1711

Since there is the MODULE_DEVICE_TABLE(), why  the author additionally adds the MODULE_ALIAS()?
What exactly is this MODULE_ALIAS() used for?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-14 13:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-10  1:36 What is this MODULE_ALIAS() used for? Perr Zhang
2016-12-10  8:40 ` Giedrius Statkevičius
2016-12-14 13:01 ` Aruna Hewapathirane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).