From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.226]) by ozlabs.org (Postfix) with ESMTP id E5F76DDFED for ; Thu, 4 Sep 2008 00:15:49 +1000 (EST) Received: by rv-out-0506.google.com with SMTP id f6so3053287rvb.9 for ; Wed, 03 Sep 2008 07:15:47 -0700 (PDT) Message-ID: <319b0ac50809030715h1a03a606jacddd400019f4483@mail.gmail.com> Date: Wed, 3 Sep 2008 16:15:47 +0200 From: "=?ISO-8859-1?Q?S=E9bastien_Chr=E9tien?=" To: linuxppc-dev@ozlabs.org Subject: irq MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_28971_15903953.1220451347718" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_28971_15903953.1220451347718 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, I am trying to register a function writh IRQ : static irqreturn_t uart_test (int irq , void *dev_id) { printk("/!\\ Interruption : tx_empty\n"); return IRQ_HANDLED; } req=request_irq(0x18,uart_test,NULL,"uart_test",NULL); printk("Initialisation IRQ UART : %d \n", req); When I boot linux ppc, the req value is -38. What is wrong ? ------=_Part_28971_15903953.1220451347718 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello,

I am trying to register a function writh IRQ :
 
static irqreturn_t uart_test (int irq , void *dev_id)
{
    printk("/!\\ Interruption : tx_empty\n");
       return IRQ_HANDLED;
}
   
    req=request_irq(0x18,uart_test,NULL,"uart_test",NULL);
    printk("Initialisation IRQ UART : %d \n", req);   

When I boot linux ppc, the req value is -38.
What is wrong ?
------=_Part_28971_15903953.1220451347718--