request_region in the kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear List,

I would like to use the request_region function in the kernel. I if use in 
a module there is no problem, but if I put it into the kernel, it hangs 
during the boot. Can anyone help me how to use it? It is a 2.4.7 kernel 
for a PPC platform.

I added the following lines to the arch/ppc/kernel/m8xx_setup.c in the 
m8xx_get_rtc_time function :

if(!rtc_vm_base)
      if (!request_region(IO_ADR_RTC, IO_LEN_RTC, "k14_rtc"))
                  printk("Can't request IO ports\n");

rtc_vm_base = ioremap(IO_ADR_RTC, IO_LEN_RTC);

If I comment the first three lines it works nicely, but I'd like to 
allocate this IO region not to allow other modules to modify the chip 
settings. How can I do that?

TIA && Good byte!
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux