Merge branch 'timer-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip

* 'timer-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
hrtimer: Initialize CLOCK_ID to HRTIMER_BASE table statically
rtc: max8925: Call dev_set_drvdata before rtc_device_register

+7 -6
+2 -1
drivers/rtc/rtc-max8925.c
··· 257 goto out_irq; 258 } 259 260 info->rtc_dev = rtc_device_register("max8925-rtc", &pdev->dev, 261 &max8925_rtc_ops, THIS_MODULE); 262 ret = PTR_ERR(info->rtc_dev); ··· 267 goto out_rtc; 268 } 269 270 - dev_set_drvdata(&pdev->dev, info); 271 platform_set_drvdata(pdev, info); 272 273 return 0;
··· 257 goto out_irq; 258 } 259 260 + dev_set_drvdata(&pdev->dev, info); 261 + 262 info->rtc_dev = rtc_device_register("max8925-rtc", &pdev->dev, 263 &max8925_rtc_ops, THIS_MODULE); 264 ret = PTR_ERR(info->rtc_dev); ··· 265 goto out_rtc; 266 } 267 268 platform_set_drvdata(pdev, info); 269 270 return 0;
+5 -5
kernel/hrtimer.c
··· 81 } 82 }; 83 84 - static int hrtimer_clock_to_base_table[MAX_CLOCKS]; 85 86 static inline int hrtimer_clockid_to_base(clockid_t clock_id) 87 { ··· 1726 1727 void __init hrtimers_init(void) 1728 { 1729 - hrtimer_clock_to_base_table[CLOCK_REALTIME] = HRTIMER_BASE_REALTIME; 1730 - hrtimer_clock_to_base_table[CLOCK_MONOTONIC] = HRTIMER_BASE_MONOTONIC; 1731 - hrtimer_clock_to_base_table[CLOCK_BOOTTIME] = HRTIMER_BASE_BOOTTIME; 1732 - 1733 hrtimer_cpu_notify(&hrtimers_nb, (unsigned long)CPU_UP_PREPARE, 1734 (void *)(long)smp_processor_id()); 1735 register_cpu_notifier(&hrtimers_nb);
··· 81 } 82 }; 83 84 + static int hrtimer_clock_to_base_table[MAX_CLOCKS] = { 85 + [CLOCK_REALTIME] = HRTIMER_BASE_REALTIME, 86 + [CLOCK_MONOTONIC] = HRTIMER_BASE_MONOTONIC, 87 + [CLOCK_BOOTTIME] = HRTIMER_BASE_BOOTTIME, 88 + }; 89 90 static inline int hrtimer_clockid_to_base(clockid_t clock_id) 91 { ··· 1722 1723 void __init hrtimers_init(void) 1724 { 1725 hrtimer_cpu_notify(&hrtimers_nb, (unsigned long)CPU_UP_PREPARE, 1726 (void *)(long)smp_processor_id()); 1727 register_cpu_notifier(&hrtimers_nb);