Commit 4846f1181635e1f68aed0725f71700c15c2fb449
1 parent
cc08d25a88
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
MIPS: SEAD3: Fix I2C device registration.
This isn't a module and shouldn't be one. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Showing 1 changed file with 1 additions and 7 deletions Side-by-side Diff
arch/mips/mti-sead3/sead3-i2c.c
... | ... | @@ -5,10 +5,8 @@ |
5 | 5 | * |
6 | 6 | * Copyright (C) 2012 MIPS Technologies, Inc. All rights reserved. |
7 | 7 | */ |
8 | -#include <linux/module.h> | |
9 | 8 | #include <linux/init.h> |
10 | 9 | #include <linux/platform_device.h> |
11 | -#include <irq.h> | |
12 | 10 | |
13 | 11 | struct resource sead3_i2c_resources[] = { |
14 | 12 | { |
... | ... | @@ -30,9 +28,5 @@ |
30 | 28 | return platform_device_register(&sead3_i2c_device); |
31 | 29 | } |
32 | 30 | |
33 | -module_init(sead3_i2c_init); | |
34 | - | |
35 | -MODULE_AUTHOR("Chris Dearman <chris@mips.com>"); | |
36 | -MODULE_LICENSE("GPL"); | |
37 | -MODULE_DESCRIPTION("I2C probe driver for SEAD3"); | |
31 | +device_initcall(sead3_i2c_init); |