/*
+ * arch/ppc/platforms/radstone_ppc7d.c
+ *
* Board setup routines for the Radstone PPC7D boards.
*
* Author: James Chapman <jchapman@katalix.com>
* SCSI / VGA.
*/
+#include <linux/config.h>
#include <linux/stddef.h>
#include <linux/kernel.h>
#include <linux/init.h>
pdata = pdev->dev.platform_data;
if (pdata == NULL) {
- pdata = kzalloc(sizeof(*pdata), GFP_KERNEL);
+ pdata = kmalloc(sizeof(*pdata), GFP_KERNEL);
if (pdata == NULL)
return;
+ memset(pdata, 0, sizeof(*pdata));
pdev->dev.platform_data = pdata;
}
}
#endif
-static int ppc7d_platform_notify(struct device *dev)
+static int __init ppc7d_platform_notify(struct device *dev)
{
static struct {
char *bus_id;
/* Hook up i8259 interrupt which is connected to GPP28 */
request_irq(mv64360_irq_base + MV64x60_IRQ_GPP28, ppc7d_i8259_intr,
- IRQF_DISABLED, "I8259 (GPP28) interrupt", (void *)0);
+ SA_INTERRUPT, "I8259 (GPP28) interrupt", (void *)0);
/* Configure MPP16 as watchdog NMI, MPP17 as watchdog WDE */
spin_lock_irqsave(&mv64x60_lock, flags);