* [PATCH v13 2/3] power-domain: rockchip: add power domain driver
[not found] ` <1429440280-18915-1-git-send-email-wxt@rock-chips.com>
@ 2015-04-20 9:26 ` Paul Bolle
2015-04-20 14:42 ` Caesar Wang
0 siblings, 1 reply; 2+ messages in thread
From: Paul Bolle @ 2015-04-20 9:26 UTC (permalink / raw)
To: linux-arm-kernel
On Sun, 2015-04-19 at 18:44 +0800, Caesar Wang wrote:
> --- a/arch/arm/mach-rockchip/Makefile
> +++ b/arch/arm/mach-rockchip/Makefile
+obj-$(CONFIG_PM_GENERIC_DOMAINS) += pm_domains.o
PM_GENERIC_DOMAINS is a bool symbol, so pm_domains.o can never be part
of a module. Is that correct?
> --- /dev/null
> +++ b/arch/arm/mach-rockchip/pm_domains.c
> +#include <linux/module.h>
This include could probably be dropped.
> +static const struct of_device_id rockchip_pm_domain_dt_match[] = {
> + {
> + .compatible = "rockchip,rk3288-power-controller",
> + .data = (void *)&rk3288_pmu,
> + },
> + { /* sentinel */ },
> +};
> +MODULE_DEVICE_TABLE(of, rockchip_pm_domain_dt_match);
The MODULE_DEVICE_TABLE() macro will be preprocessed away for built-in
code, according to include/linux/module.h.
> +static struct platform_driver rockchip_pm_domain_driver = {
> + .probe = rockchip_pm_domain_probe,
> + .driver = {
> + .name = "rockchip-pm-domain",
> + .owner = THIS_MODULE,
According to include/linux/export.h THIS_MODULE is equivalent to NULL
for built-in code. So I think this line is not needed.
> + .of_match_table = rockchip_pm_domain_dt_match,
> + /*
> + * We can't forcibly eject devices form power domain,
> + * so we can't really remove power domains once they
> + * were added.
> + */
> + .suppress_bind_attrs = true,
> + },
> +};
Thanks,
Paul Bolle
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH v13 2/3] power-domain: rockchip: add power domain driver
2015-04-20 9:26 ` [PATCH v13 2/3] power-domain: rockchip: add power domain driver Paul Bolle
@ 2015-04-20 14:42 ` Caesar Wang
0 siblings, 0 replies; 2+ messages in thread
From: Caesar Wang @ 2015-04-20 14:42 UTC (permalink / raw)
To: linux-arm-kernel
Paul,
Thanks your commnets!:-)
? 2015?04?20? 17:26, Paul Bolle ??:
> On Sun, 2015-04-19 at 18:44 +0800, Caesar Wang wrote:
>> --- a/arch/arm/mach-rockchip/Makefile
>> +++ b/arch/arm/mach-rockchip/Makefile
> +obj-$(CONFIG_PM_GENERIC_DOMAINS) += pm_domains.o
>
> PM_GENERIC_DOMAINS is a bool symbol, so pm_domains.o can never be part
> of a module. Is that correct?
Yeah, So this platform_driver does not need to set an owner, it will be
populated by the
driver core.
>
>> --- /dev/null
>> +++ b/arch/arm/mach-rockchip/pm_domains.c
>> +#include <linux/module.h>
> This include could probably be dropped.
Yeah. As the about said.
>> +static const struct of_device_id rockchip_pm_domain_dt_match[] = {
>> + {
>> + .compatible = "rockchip,rk3288-power-controller",
>> + .data = (void *)&rk3288_pmu,
>> + },
>> + { /* sentinel */ },
>> +};
>> +MODULE_DEVICE_TABLE(of, rockchip_pm_domain_dt_match);
> The MODULE_DEVICE_TABLE() macro will be preprocessed away for built-in
> code, according to include/linux/module.h.
So,do you think we should remove it?
wow.....,looks we should remove it.
>> +static struct platform_driver rockchip_pm_domain_driver = {
>> + .probe = rockchip_pm_domain_probe,
>> + .driver = {
>> + .name = "rockchip-pm-domain",
>> + .owner = THIS_MODULE,
> According to include/linux/export.h THIS_MODULE is equivalent to NULL
> for built-in code. So I think this line is not needed.
>
Yeah,you are right.
>> + .of_match_table = rockchip_pm_domain_dt_match,
>> + /*
>> + * We can't forcibly eject devices form power domain,
>> + * so we can't really remove power domains once they
>> + * were added.
>> + */
>> + .suppress_bind_attrs = true,
>> + },
>> +};
> Thanks,
>
>
> Paul Bolle
>
>
>
>
Thanks,
Caesar
--
**************************************************************************************
??? Caesar Wang
Product R&D Dept.III
Fuzhou Rockchip Electronics Co.Ltd
Addr? NO.18 Building, A District, Fuzhou Software Park,Gulou District,Fuzhou, Fujian,China(Fuzhou Headquarters)
21F,Malata Building,Kejizhongyi Avenue,Nanshan District,Shenzhen (Shenzhen Office)
Tel?+86-591-83991906/07 - 8221
Mobile:+86 15059456742
E-mail : wxt at rock-chips.com
***************************************************************************************
***************************************************************************************
IMPORTANT NOTICE: This email is from Fuzhou Rockchip Electronics Co., Ltd .The contents of this email and any attachments may
contain information that is privileged, confidential and/or exempt from disclosure under applicable law and relevant NDA.
If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the
information is STRICTLY PROHIBITED. Please immediately contact the sender as soon as possible and destroy the material
in its entirety in any format. Thank you.
***************************************************************************************
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-04-20 14:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1429438552-17733-1-git-send-email-wxt@rock-chips.com>
[not found] ` <1429440280-18915-1-git-send-email-wxt@rock-chips.com>
2015-04-20 9:26 ` [PATCH v13 2/3] power-domain: rockchip: add power domain driver Paul Bolle
2015-04-20 14:42 ` Caesar Wang
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).