Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions drivers/rtc/rtc-ds1307.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,12 @@ static const struct i2c_device_id ds1307_id[] = {
};
MODULE_DEVICE_TABLE(i2c, ds1307_id);

static struct i2c_board_info i2c_ds1307_info[] __initdata = {
{
I2C_BOARD_INFO("ds1307", 0x68),
}
};

/*----------------------------------------------------------------------*/

#define BLOCK_DATA_MAX_TRIES 10
Expand Down Expand Up @@ -320,6 +326,9 @@ static void ds1307_work(struct work_struct *work)
struct i2c_client *client;
struct mutex *lock;
int stat, control;

i2c_register_board_info(1, i2c_ds1307_info,
ARRAY_SIZE(i2c_ds1307_info));

ds1307 = container_of(work, struct ds1307, work);
client = ds1307->client;
Expand Down