Revision ee6c54ca64416c75aa6f5021e139f270192bae49 authored by Viresh Kumar on 23 March 2012, 22:02:30 UTC, committed by Linus Torvalds on 23 March 2012, 23:58:39 UTC
rtc_device_register() calls rtc-spear routines internally.  These
routines call dev_get_drvdata() to get struct spear_rtc_config.
Currently, platform_set_drvdata is called after rtc device is
registered.  This causes system to crash, as dev_get_drvdata returns
NULL.

For this we need to call platform_set_drvdata() before registering rtc
device.  This requires further cleanup, that leads to removal of
dev_set_drvdata on rtc->dev, which was just not required at all.

Also, we change the parameter to request_irq and pass pointer to config
instead of pointer to rtc struct.

This patch brings all above changes.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Cc: Shiraz Hashim <shiraz.hashim@st.com>
Cc: Deepak Sikri <deepak.sikri@st.com>
Acked-by: Rajeev Kumar <rajeev-dlh.kumar@st.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 131f8b7
History
File Mode Size
Kconfig -rw-r--r-- 12.4 KB
Kconfig.debug -rw-r--r-- 1015 bytes
Makefile -rw-r--r-- 1.8 KB
backing-dev.c -rw-r--r-- 22.3 KB
bootmem.c -rw-r--r-- 20.7 KB
bounce.c -rw-r--r-- 6.5 KB
cleancache.c -rw-r--r-- 6.5 KB
compaction.c -rw-r--r-- 21.2 KB
debug-pagealloc.c -rw-r--r-- 2.1 KB
dmapool.c -rw-r--r-- 13.0 KB
fadvise.c -rw-r--r-- 3.6 KB
failslab.c -rw-r--r-- 1.3 KB
filemap.c -rw-r--r-- 69.5 KB
filemap_xip.c -rw-r--r-- 11.2 KB
fremap.c -rw-r--r-- 6.7 KB
highmem.c -rw-r--r-- 10.3 KB
huge_memory.c -rw-r--r-- 63.4 KB
hugetlb.c -rw-r--r-- 78.9 KB
hwpoison-inject.c -rw-r--r-- 3.3 KB
init-mm.c -rw-r--r-- 619 bytes
internal.h -rw-r--r-- 8.6 KB
kmemcheck.c -rw-r--r-- 2.8 KB
kmemleak-test.c -rw-r--r-- 3.3 KB
kmemleak.c -rw-r--r-- 52.6 KB
ksm.c -rw-r--r-- 54.7 KB
maccess.c -rw-r--r-- 1.6 KB
madvise.c -rw-r--r-- 11.5 KB
memblock.c -rw-r--r-- 26.6 KB
memcontrol.c -rw-r--r-- 146.5 KB
memory-failure.c -rw-r--r-- 41.9 KB
memory.c -rw-r--r-- 108.2 KB
memory_hotplug.c -rw-r--r-- 23.9 KB
mempolicy.c -rw-r--r-- 65.0 KB
mempool.c -rw-r--r-- 10.4 KB
migrate.c -rw-r--r-- 33.6 KB
mincore.c -rw-r--r-- 7.8 KB
mlock.c -rw-r--r-- 15.7 KB
mm_init.c -rw-r--r-- 3.7 KB
mmap.c -rw-r--r-- 70.1 KB
mmu_context.c -rw-r--r-- 1.4 KB
mmu_notifier.c -rw-r--r-- 9.1 KB
mmzone.c -rw-r--r-- 1.7 KB
mprotect.c -rw-r--r-- 7.9 KB
mremap.c -rw-r--r-- 14.0 KB
msync.c -rw-r--r-- 2.4 KB
nobootmem.c -rw-r--r-- 10.6 KB
nommu.c -rw-r--r-- 51.0 KB
oom_kill.c -rw-r--r-- 22.2 KB
page-writeback.c -rw-r--r-- 67.3 KB
page_alloc.c -rw-r--r-- 155.6 KB
page_cgroup.c -rw-r--r-- 11.9 KB
page_io.c -rw-r--r-- 3.2 KB
page_isolation.c -rw-r--r-- 3.6 KB
pagewalk.c -rw-r--r-- 5.8 KB
percpu-km.c -rw-r--r-- 2.8 KB
percpu-vm.c -rw-r--r-- 12.9 KB
percpu.c -rw-r--r-- 56.6 KB
pgtable-generic.c -rw-r--r-- 3.3 KB
prio_tree.c -rw-r--r-- 6.3 KB
process_vm_access.c -rw-r--r-- 13.3 KB
quicklist.c -rw-r--r-- 2.4 KB
readahead.c -rw-r--r-- 15.1 KB
rmap.c -rw-r--r-- 52.6 KB
shmem.c -rw-r--r-- 65.7 KB
slab.c -rw-r--r-- 119.4 KB
slob.c -rw-r--r-- 17.1 KB
slub.c -rw-r--r-- 128.7 KB
sparse-vmemmap.c -rw-r--r-- 5.9 KB
sparse.c -rw-r--r-- 20.3 KB
swap.c -rw-r--r-- 20.5 KB
swap_state.c -rw-r--r-- 10.2 KB
swapfile.c -rw-r--r-- 63.8 KB
thrash.c -rw-r--r-- 3.9 KB
truncate.c -rw-r--r-- 18.0 KB
util.c -rw-r--r-- 8.1 KB
vmalloc.c -rw-r--r-- 65.7 KB
vmscan.c -rw-r--r-- 102.6 KB
vmstat.c -rw-r--r-- 33.2 KB

back to top