Merge branch 'clocksource/cleanup' into next/cleanup
Clockevent cleanup series from Shawn Guo. Resolved move/change conflict in mach-pxa/time.c due to the sys_timer cleanup. * clocksource/cleanup: clocksource: use clockevents_config_and_register() where possible ARM: use clockevents_config_and_register() where possible clockevents: export clockevents_config_and_register for module use + sync to Linux 3.8-rc3 Signed-off-by: Olof Johansson <olof@lixom.net> Conflicts: arch/arm/mach-pxa/time.c
此提交包含在:
@@ -198,7 +198,7 @@ static struct sharpsl_charger_machinfo corgi_pm_machinfo = {
|
||||
|
||||
static struct platform_device *corgipm_device;
|
||||
|
||||
static int __devinit corgipm_init(void)
|
||||
static int corgipm_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
@@ -829,7 +829,7 @@ static const struct platform_suspend_ops sharpsl_pm_ops = {
|
||||
};
|
||||
#endif
|
||||
|
||||
static int __devinit sharpsl_pm_probe(struct platform_device *pdev)
|
||||
static int sharpsl_pm_probe(struct platform_device *pdev)
|
||||
{
|
||||
int ret, irq;
|
||||
|
||||
@@ -941,7 +941,7 @@ static struct platform_driver sharpsl_pm_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
static int __devinit sharpsl_pm_init(void)
|
||||
static int sharpsl_pm_init(void)
|
||||
{
|
||||
return platform_driver_register(&sharpsl_pm_driver);
|
||||
}
|
||||
|
@@ -232,7 +232,7 @@ struct sharpsl_charger_machinfo spitz_pm_machinfo = {
|
||||
|
||||
static struct platform_device *spitzpm_device;
|
||||
|
||||
static int __devinit spitzpm_init(void)
|
||||
static int spitzpm_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
@@ -151,16 +151,12 @@ void __init pxa_timer_init(void)
|
||||
|
||||
setup_sched_clock(pxa_read_sched_clock, 32, clock_tick_rate);
|
||||
|
||||
clockevents_calc_mult_shift(&ckevt_pxa_osmr0, clock_tick_rate, 4);
|
||||
ckevt_pxa_osmr0.max_delta_ns =
|
||||
clockevent_delta2ns(0x7fffffff, &ckevt_pxa_osmr0);
|
||||
ckevt_pxa_osmr0.min_delta_ns =
|
||||
clockevent_delta2ns(MIN_OSCR_DELTA * 2, &ckevt_pxa_osmr0) + 1;
|
||||
ckevt_pxa_osmr0.cpumask = cpumask_of(0);
|
||||
|
||||
setup_irq(IRQ_OST0, &pxa_ost0_irq);
|
||||
|
||||
clocksource_mmio_init(OSCR, "oscr0", clock_tick_rate, 200, 32,
|
||||
clocksource_mmio_readl_up);
|
||||
clockevents_register_device(&ckevt_pxa_osmr0);
|
||||
clockevents_config_and_register(&ckevt_pxa_osmr0, clock_tick_rate,
|
||||
MIN_OSCR_DELTA * 2, 0x7fffffff);
|
||||
}
|
||||
|
@@ -102,7 +102,7 @@ err_reset:
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int __devexit tosa_bt_remove(struct platform_device *dev)
|
||||
static int tosa_bt_remove(struct platform_device *dev)
|
||||
{
|
||||
struct tosa_bt_data *data = dev->dev.platform_data;
|
||||
struct rfkill *rfk = platform_get_drvdata(dev);
|
||||
@@ -125,7 +125,7 @@ static int __devexit tosa_bt_remove(struct platform_device *dev)
|
||||
|
||||
static struct platform_driver tosa_bt_driver = {
|
||||
.probe = tosa_bt_probe,
|
||||
.remove = __devexit_p(tosa_bt_remove),
|
||||
.remove = tosa_bt_remove,
|
||||
|
||||
.driver = {
|
||||
.name = "tosa-bt",
|
||||
|
新增問題並參考
封鎖使用者