All pastes #21841 Raw Edit

Untitled

public text v1 · immutable
#21841 ·published 2005-09-01 16:04 UTC
rendered paste body

#define OMAP_OSK_ETHR_START             0x04800300

static struct resource osk5912_smc91x_resources[] = {
        [0] = {
                .start  = OMAP_OSK_ETHR_START,          /* Physical */
                .end    = OMAP_OSK_ETHR_START + 0xf,
                .flags  = IORESOURCE_MEM,
        },
        [1] = {
                .start  = OMAP_GPIO_IRQ(0),
                .end    = OMAP_GPIO_IRQ(0),
                .flags  = IORESOURCE_IRQ,
        },
};
 
static struct platform_device osk5912_smc91x_device = {
        .name           = "smc91x",
        .id             = -1,
        .num_resources  = ARRAY_SIZE(osk5912_smc91x_resources),
        .resource       = osk5912_smc91x_resources,
};